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.
But now the client want a full standard Print Setup, with number of copies and page range like this one:
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!