Problem with margins while printing header/footer using GridPrintDocument

Hi,

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()
method.

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?

thanks,
Kesav

1 Reply

GR Golda Rebecal Syncfusion Team 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,
Golda

Loader.
Up arrow icon