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.

Problem with margins while printing header/footer using GridPrintDocument

Thread ID:

Created:

Updated:

Platform:

Replies:

67317 Aug 14,2007 03:12 AM Aug 15,2007 07:53 AM Windows Forms 1
loading
Tags: GridControl
kesav
Asked On August 14, 2007 03:12 AM

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

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

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

CONFIRMATION

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.

;