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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Adding Page Breaks to a printed grid

Thread ID:





29950 Jun 8,2005 02:37 AM UTC Jun 8,2005 09:06 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On June 8, 2005 02:37 AM UTC

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 09:06 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon