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

Problem with margins while printing header/footer using GridPrintDocument

Thread ID:





67317 Aug 14,2007 07:12 AM UTC Aug 15,2007 11:53 AM UTC WinForms 1
Tags: GridControl
Asked On August 14, 2007 07:12 AM UTC


I want to print custom header and footer for my printouts. So, I derived
ReportPrintDocument from the GridPrintDocument base class. I am having
trouble controlling margins. It looks like the GridPrintDocument is
calculating the number of rows that be fit into a page in the OnBeginPrint()

In OnBeginPrint(), I am shrinking the margins, so that my header+footer
can be printed. In OnPrintPage(), I am painting my header/footer and
letting the grid paint in the middle. Here is where I am having a problem.
I want to print the header only on first page. My first page is coming ok.
But from page #2, for some reason the grid is not going till the bottom.

Is there any way to solve my problem?


Golda Rebecal [Syncfusion]
Replied On August 15, 2007 11:53 AM UTC

Hi Kesav,

We are trying to achieve this by scrolling the grid and drawing the bitmap image of a particular range of rows in each page so that the image would fit the page size.

We will get back to you within 2 business days.

Thank you for your patience.

Best regards,


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