Top "Printdocument" questions

Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.

Printing image with PrintDocument. how to adjust the image to fit paper size

In C#, I am trying to print an image using PrintDocument class with the below code. The image is of …

c# printing printdocument
How to find the actual printable area? (PrintDocument)

Why is finding out this magic Rectangle so difficult? In the OnPrintPage event I have PrintPageEventArgs and I am trying …

c# printing gdi+ printdocument
Showing Print Preview in C#

Right now, I'm trying to build my form on a PrintDocument, but the only way for me to see where …

c# .net winforms printing printdocument
Printing Forms using PrintDocument

I'm trying MSDN's example of printing using PrintDocument, but it's not going so well. I've got it all to compile, …

c# .net forms printing printdocument
System.Drawing.Brush from System.Drawing.Color

I'm developing a WinForm Printing application for our company. When the document is printed, I need to take the System.…

c# winforms system.drawing printdocument system.drawing.color
How to print a text file on thermal printer using PrintDocument?

I'm creating an application using C# with Winforms and now I need to print the receipt of sale on a …

c# winforms report printdocument
Why is Graphics.MeasureString() returning a higher than expected number?

I'm generating a receipt and am using the Graphics object to call the DrawString method to print out the required …

c# measurement printdocument
how to set to default printer

How do you set PrintDocument.PrinterSettings.PrinterName to be the default printer? I am not talking about setting the default …

c# printdocument
How to print html in C#

I would like to print a file using PrintDocument in C#. The file is simple HTML (I need it because …

c# html printing printdocument
How to print datagridview table with its header in vb.net?

I'm creating a print preview function in a system that I'm developing which will preview the datagridview that I want …

.net vb.net datagridview printdocument