printing of grid values

printing data of grid is working fine if it is on single page, but as the data in grid increases say on 5 to 7 pages then the whole data of grid is printed on single page.
which cause a bad printing result.How can i set it to automatically adjust on multiple pages as so to generate a readable print.

1 Reply

HA haneefm Syncfusion Team April 30, 2007 05:15 PM UTC

Hi Touqeer,

You can try this code snippet to print the grid control.

GridPrintDocument pd = new GridPrintDocument(gridControl1, true); //Assumes the default printer
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
dlg.Document = pd;
dlg.ShowDialog();

Here is a forum thread that prints all the columns in a single page and the rows in multiple pages.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=59396

Best regards,
Haneef

Loader.
Up arrow icon