Questions tagged [printdialog]

In WPF PrintDialog is a class that invokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.

In WPF PrintDialog is a class that invokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.

More info

172 questions
1
vote
1 answer

Print a usercontrol to the center of an A4 page

I have a user control which I need to print. The form is just a basic filled out form. I have the controls all placed in a stackpanel which is named and the button for printing is outside the stackpanel, so the button is not printed…
Nicholas Aysen
  • 568
  • 3
  • 18
  • 40
1
vote
1 answer

.net printdialog

i am building a button that allows a user to browse to a file. i want to get the location of the file and send it to printdialog. can this be done and if so how? i know how to create the browse funcitonality and how to get the location... my…
user311166
  • 43
  • 1
  • 1
  • 8
1
vote
2 answers

PrintableAreaHeight & PrintableAreaWidth

How to adjust System.Windows.Controls.PrintDialog.PrintableAreaHeight & System.Windows.Controls.PrintDialog.PrintableAreaWidth since they are read only?
1
vote
0 answers

Printing forms in vb.net with many listviews

is it possible to print a form in vb.net using different listviews? For example I have 10 listviews and I want it all to be printed is a single form. This is my code for my print document (So far it works with 2 listviews, but when I tried printing…
1
vote
1 answer

Print multiple files with same printer setting

I am currently opening the PrintDialog where user can select printer setting and do the printing. At the moment I am using below code var files = Directory.GetFiles(sourceFolder); foreach (var file in files) { var pdoc = new PrintDocument(); …
huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99
1
vote
0 answers

How to show PrintDialog in PrintPreviewDialog

I want to show PrintDialog (to choose the printer) when i click the button "Print" in the PrintPreviewDialog. I have add the code in the printdocument1_BeginPrint, but it did not work private: System::Void printDocument1_BeginPrint( …
1
vote
1 answer

Printer only prints to default printer

Here is the code I use (just the printing-related part): Button 1 onclick handler method: printDialog1 = new PrintDialog(); printDialog1.AllowPrintToFile = true; printDialog1.PrintToFile = false; if (printDialog1.ShowDialog() ==…
Mitulát báti
  • 2,086
  • 5
  • 23
  • 37
1
vote
1 answer

How to print a Workbook file made using Apache Poi and java?

I create one page workbook files in eclipse and need to open the print dialog box and print these files off. I understand how to open the print dialog box and everything, i just can't find how to tell the system that it is the workbook file "wb"…
1
vote
2 answers

PrintDialog filter list of printers

I need to, preferably in C# - but c++ will do, find a way to filter the list of printers in the windows print dialog for any windows printing. I have come across WinAPIOverride and have figured I am going to have to write my own dll which overrides…
Craig Cawood
1
vote
1 answer

Mac - Displaying a modal window on tap of Print button in Print Dialog Extension

Is it possible to perform a custom action when the user taps the Print button? For example, can I display an Authentication dialog box before printing? I am a newbie in Mac Printer Development. Any help will be greatly appreciated. Thanks!
MiuMiu
  • 1,905
  • 2
  • 19
  • 28
1
vote
1 answer

Call PrintDialog.ShowDialog() in a WPF UserControl which is hosted in WinForms Application

I have a WPF UserControl which use the System.Windows.Controls.PrintDialog: XAML:
rhe1980
  • 1,557
  • 1
  • 15
  • 36
1
vote
2 answers

javascript / jquery : close window on print cancel?

I'm generating a printer-friendly page that automatically opens the browser's print dialog box upon user visit. Is there a way to close the window if the user presses "Cancel"?
kevi kevi
  • 157
  • 1
  • 6
  • 12
0
votes
2 answers

How to know DialogResult with ReportViewer.PrintDialog()

I have encountered this problem a lot of times on the internet, but didn't find a good way to fix this. What I want is to print a report from the ReportViewer control, and if it has been printed, I need to change some stuff in the database (like the…
Jelle Capenberghs
  • 794
  • 2
  • 14
  • 30
0
votes
1 answer

print rich text box in a specific tab multiple pages C#

I am doing a web browser with multiple tabs and each tab probably will have a new website differs from the other tabs. now what i am trying to do is to print the page on a specific tab and the page might consists of multiple pages when i am trying…
dori naji
  • 980
  • 1
  • 16
  • 41
0
votes
0 answers

How can we set the settings for printing in the new print preview of windows 11?

We are struggling with the new print preview with windows 11. Before the print we are changing some settings based on some configuration of our program. This settings are applied to the old print dialog of windows, but on the new one our settings…