Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
How to have a PrintPreview with # Copies and Page Range
posted

Hi all!

I have currently using PrintPreview to print a WinGrid with header and footer and I can send a print to the printer with the Printer button.

HAVE:

But now the client want a full standard Print Setup, with number of copies and page range like this one:

NEED:

 

My currently code is:

 

 Dim rpt As New System.Drawing.Printing.PrintDocument
 rpt.DefaultPageSettings.Landscape = True
 Dim PageSetupDialog1 = New System.Windows.Forms.PageSetupDialog()
 PageSetupDialog1.Document = rpt
 PageSetupDialog1.ShowDialog()
 UltraGrid1.PrintPreview(UltraGrid1.DisplayLayout, rpt)

 

 

Thank you so much!