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
2
votes
6 answers

Printing a Collection in WPF

Is there any way to print in memory collection or variable size in WPF? I am using the following code in which I print the ListView control. But when the content is larger than the vertical scroll bar takes over and cuts the content. PrintDialog…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
2
votes
1 answer

Print multiple pages from TextBox

private void PrintTextBox(object sender, PrintPageEventArgs e) { e.Graphics.DrawString(textBox1.Text, textBox1.Font, Brushes.Black, 50, 20); } private void printListButton_Click(object sender, EventArgs e) { PrintDocument pd = new…
Martin1993-03
  • 127
  • 1
  • 11
2
votes
1 answer

Printing Fixed document in WPF

I have a fixed document which contains 70 fixed pages approx., When I tried to print that fixed page by the below code, I got exception code: PrintDialog dialog = new PrintDialog(); dialog.PrintDocument(FixedDocument.DocumentPaginator,…
Uthistran Selvaraj.
  • 558
  • 2
  • 11
  • 29
2
votes
1 answer

Error when using PrintDocument

I have a dye sub printer, and I'm trying to send an image to print programatically. I'm using PrintDocument and a PrintPage with C# 4.0 on Windows 7 64b. Printing fails, and windows gives this error: The print spooler failed to load a plug-in module…
Shachar Weis
  • 936
  • 2
  • 20
  • 44
2
votes
1 answer

PrintDialog selected papersource

I'm trying to send multiple documents directly to the printer after selecting print options from the PrintDialog class. I need to retrieve the selected papersource. Unfortunatly, I can only find all papersources from the printer, not the selected…
Gabriel GM
  • 6,391
  • 2
  • 31
  • 34
2
votes
1 answer

Custom print dialog in VB6

How do I create this custom print dialog and get the values of the red options when the user clicks ok? The print dialog below is not created manually, the app I took this screenshot from is probably modifying the default print dialog. The items…
Smith
  • 5,765
  • 17
  • 102
  • 161
2
votes
1 answer

How Do I Change the Size Of A PrintDialog Form

My C# program allows the user to choose which of several similarly named printers they wish to print some labels to. The standard PrintDialog is fairly narrow compared to the printer names it has to display, so you can't see the full names of all…
Sam Skuce
  • 1,666
  • 14
  • 20
1
vote
1 answer

Page preferences dialog in WPF

I'm fiddling with adding the ability to output from a program I'm working on to both PDF and XPS. Initially both were just done via printers (pdf printer/xps writer) but I'd like to do it a little more directly. The issue I've run into is that there…
Adam
1
vote
1 answer

Word 2007: Hide printing dialog

i have a vba macro that will print a letter twice with different page settings. This works great. But sometimes (i dont know why) the printing dialog (select printer, ...) appear. How can i hide the printing dialog. I like to print on the default…
Maik
  • 11
  • 2
1
vote
1 answer

Error when setting a PrintDialog's PrintQueue to a networked printer - C# WPF XAML

I am trying to set a WPF PrintDialog to use values set by the user on a form to control the basic printing options, without ever showing them a dialog. The goal is to allow them to set their print options one time, then use those settings hundreds…
tkolakow
  • 11
  • 4
1
vote
2 answers

printing content of a picturebox

HI all, I have a picture box in my C# WinForms application which is sized 800x800. I want to print the content of this picture box using the following code but it does not do anything at all (just shows the print dialog and when I click on PRINT in…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
1
vote
0 answers

System.Windows.Controls.PrintDialog throws exception when I run under a different Windows Account

I have this error that I can't fix and I reformatted this question after I got some testing done. I have a code that works in my application if I am running the program with the same user I am logged as to windows: PrintDialog printDialog = new…
Muhannad
  • 467
  • 4
  • 28
1
vote
0 answers

Print FixedDocument without using dialog for directory

I want to print FixedDocument with "Microsoft Print to PDF" and without showing up dialog to choose directory. I know that I can do this by passing to PrinterSettings: PrintFileName and PrintToFile with true: PrinterSettings.PrinterName = "Microsoft…
gorrch
  • 521
  • 3
  • 16
1
vote
2 answers

Show Dialog with WebBrowser

I want to show a printer dialog but when I run the following code, it prints right away while the ShowPrinterDialog is open. In other words, it doesn't wait for the ShowPrinterDialog to close before printing. WebBrowser browser = new…
sooprise
  • 22,657
  • 67
  • 188
  • 276
1
vote
3 answers

If Printer Dialog Cancelled, Then Don't Print?

If I run this code, and press cancel on the PrintDialog, it still prints. How can I tell if the use pressed cancel? PrintDocument document = new PrintDocument(); PrintDialog dialog = new PrintDialog(); dialog.ShowDialog(); document.PrinterSettings…
sooprise
  • 22,657
  • 67
  • 188
  • 276