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.
Unfortunately, activation email could not send to your email. Please try again.

Adding Page Breaks to a printed grid

Thread ID:





29950 Jun 7,2005 10:37 PM Jun 8,2005 05:06 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On June 7, 2005 10:37 PM

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

Administrator [Syncfusion]
Replied On June 8, 2005 05: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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.