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

Size of grid when printing multiple pages

Thread ID:





23680 Jan 18,2005 06:37 AM UTC Jan 18,2005 07:56 AM UTC WinForms 3
Tags: GridControl
Frank Laus
Asked On January 18, 2005 06:37 AM UTC

Hi, I''m printing a grid with multiple pages. Since I want to add a second grid beneath this grid on the last page only, I need the size or the number of columns of the grid on the last page. Where can I get this value to position my second grid on the last page? Thanks Frank

Administrator [Syncfusion]
Replied On January 18, 2005 07:00 AM UTC

Take a look at the gridControl1.PrintInfo object. It has members like m_awPageFirstCol and m_awPageFirstRow which are arraylists of the first column/row on each page. If you get the first row on the last page, you can use grid.Model.RowHeights.GetTotal(firstRow, grid.Model.RowCount) + grid.Model.RowHeights.GetTotal(0, grid.Model.HeaderCount) to get the height of the grid on the last page. Then I think you can use this height in conjunction with the margins to decide where the bottom of the grid is.

Frank Laus
Replied On January 18, 2005 07:35 AM UTC

Thanks for the quick answer! Is there any documentation for PrintInfo - I can''t find it in the help files. Thanks Frank

Administrator [Syncfusion]
Replied On January 18, 2005 07:56 AM UTC

No. If you have the source code, you can see their use in the GridPrintDocument class. This class was exposed temporarily to allow users access to members that are useful in doing custom printing. We plan to extend the printing support in future releases and these members may change at that point.


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

Live Chat Icon For mobile
Live Chat Icon