Tuesday, May 01, 2007

.NET 2.0/3.0

How to change the size of the paper

PageSettings.PaperSize.Kind to Custom, its saying its a Read Only property and if you want to change the size to any other with

PageSettings.PaperSize.Width

Or

PageSettings.PaperSize.Height

PrintDocument1.DefaultPageSettings.PaperSize = New System.Drawing.Printing.PaperSize(PaperSizeName, PageWidth, PageHeight)

0 Comments:

Post a Comment

<< Home