vb.net printing set page size
Printing Set Page Size in VB.NET
To set the page size for printing in VB.NET, you can use the PaperSize
property of the PrintDocument
class. Here's an example of how to do this:
Dim pd As New Printing.PrintDocument()
pd.DefaultPageSettings.PaperSize = New Printing.PaperSize("Custom", width, height)
Where width
and height
are the dimensions of the custom paper size in hundredths of an inch.
[[SOURCE #4]]