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

How to save print settings from a Windows Forms Program?

I have program that print labels and I have to allow user to save/remember settings for printer. So I have this code: private void printerToolStripButton_Click(object sender, EventArgs e) { PrintDialog dialog = new PrintDialog(); …
Adrian Serafin
  • 7,665
  • 5
  • 46
  • 67
1
vote
0 answers

C# .net PrintTicket XML is not well-formed (using badge printer)

Using .NET 3.5 and 4.5 I'm able to print a simple canvas with a red rectangle in the centre with no problems using PrintDialog.PrintVisual(). These print jobs are sent to CutePDF and a standard printer and they both work fine. However, I'm now…
Murphybro2
  • 2,207
  • 1
  • 22
  • 36
1
vote
1 answer

Printing Multiple Windows Using PrintVisual()

I'm currently using PrintVisual() in a wpf application to do printing. This is working perfectly at the moment, the only issue I now have is when processing large amounts of data I need to paginate, whereby I want to render the window multiple times…
Josh
  • 570
  • 6
  • 18
1
vote
1 answer

Print Dialog: How can I remove the Page Range -> Pages default of "0"?

If I create a simple WinForms PrintDialog as such: PrintDialog print_dialog = new PrintDialog(); print_dialog.UseEXDialog = true; // Setup dialog defaults print_dialog.AllowSomePages = true; // Setting this shows a default value of…
DelftRed
  • 196
  • 1
  • 11
1
vote
2 answers

How can I render an html document with an image on it for the printdocument class so I can print it?

Private Sub document_PrintPage(ByVal sender As Object, _ ByVal e As System.Drawing.Printing.PrintPageEventArgs) _ Handles docToPrint.PrintPage ' Insert code to render the page here. ' This code will be called when the control is…
1
vote
1 answer

How to export multiline text with printdialog in java?

I am trying to export some results with java print/ printdialog. I want to print multi lines (with using "\n"), but my export is simple line. How can i resolve this cause? here is my code sample: import java.awt.Color; import java.awt.Font; import…
enes
  • 95
  • 2
  • 9
1
vote
1 answer

Printing in C# WPF - PrintDialog.PrintVisual method works on one computer and doesn't work on other

I have a problem, that i'm trying to solve for about a week now and I decided to sign up and ask you, because everything I have tried has failed. I have WPF application written in C#. My biggest concern is printing. I have following piece of…
Dario
  • 11
  • 1
  • 2
1
vote
0 answers

java print pdf with printdialog

How can I print a pdf showing the printDialog? Now I am printig with this code: public static void print2(){ InputStream is = null; try { PrintService defaultPrintService =…
michele
  • 26,348
  • 30
  • 111
  • 168
1
vote
1 answer

Attach a PDF File to a Print Dialog

I'm trying to attach a PDF File to a Print Dialog, but I haven't find out the way to do it. I'm using a WPF app, and I have some code related with printing and looks like this: private void Imprimir() { try { …
1
vote
0 answers

Printing WPF view shows PageRange={0}

I was trying to print a WPF view. while printing I tried this. internal string PrinterName { get; private set; } public PrintDialog Printer { get { if (printer == null) { // Create a…
Alias Varghese
  • 2,104
  • 3
  • 24
  • 52
1
vote
1 answer

Add Custom Button in Print Dialog box

I am developing a WPF application, i want to generate a pdf and ask to user that user want to store it on disk or generate a print. now i have create a pdf but in i don't know how to add custom button for store that pdf on disk, so can any tell me…
Vinit Patel
  • 2,408
  • 5
  • 28
  • 53
1
vote
1 answer

increasing the page size PrintVisual in C# WPF?

I try to print with PrintDialog.PrintVisual, but when the size of the page exceeds one sheet to print lock, anyone know how to solve?
1
vote
1 answer

Enable "Current Page" in PrintDialog

Im using a System.Windows.Controls.PrintDialog to let the user print one or more pages from my application. This is what I currently got: PrintDialog printDialog = new PrintDialog(); printDialog.PageRangeSelection =…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
1
vote
1 answer

Printing Date Modify

My DataGridView i modify it only date but when it comes to the Printing preview it gives me also the time . how do i remove it? and also i want it to autofit every column sample output: Here is my code printDocument: private void…
Carlo Cruz
  • 41
  • 14
1
vote
1 answer

How can I generate PDF from Printdocument?

[Language: C#] I have wrote some code to printdocument and I get a preview with microsoft's controls built-in (System.Windows.Forms.PrintPreviewControl, System.Drawing.Printing.PrintDocument). How can I convert in PDF the file that I print with this…
finalbyte
  • 21
  • 1
  • 4