We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Adding Page Breaks to a printed grid

Is it possible to programmatically add additional page breaks while printing a grid? I would like to be able to allow the user to specify a page break after certain rows. Any suggestions? Thanks, Sue

1 Reply

AD Administrator Syncfusion Team June 8, 2005 04:06 AM

The page breaks are computed in the GridPrintDocument.OnBeginPrint method. The breaks are in two arraylists that are members of grid.PrintInfo. So, you can derive GridPrintDocument, override OnBeginPrint, call the baseclass to populate the arraylists in the default manner, and then you can adjust these arraylists after the base class call. Here is a forum thread that discuss how to interpret these arraylists. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=23682

Loader.
Live Chat Icon For mobile
Up arrow icon