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.

Print two grid in the same PrintDocument

Thread ID:

Created:

Updated:

Platform:

Replies:

68883 Oct 4,2007 09:32 AM Oct 5,2007 04:04 PM Windows Forms 4
loading
Tags: GridControl
mattia locatelli
Asked On October 4, 2007 09:32 AM

Hi,
is it possible to print to grid int the same PrintDocument?

haneefm [Syncfusion]
Replied On October 4, 2007 11:01 AM

Hi Kiran,

Thanks for your interest in Syncfusion Products.

This can be achieved by deriving the GridPrintDocument and overriding its OnPrintPage method. In the override, don't call the base class. Place and draw the grids wherever you want it in the page layout. Please refer the following Knowledge Base(KB) article link that helps in printing multiple grids in a page.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=63

If you like to print multiple grids on each page, then refer the below KB article that helps in doing this. Also this helps in adding header and footer on each page.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=62

Best regards,
Haneef

haneefm [Syncfusion]
Replied On October 4, 2007 11:03 AM

Hi Ermes,

My apologies for addressing to the wrong person, it was meant for you.

Thanks for your interest in Syncfusion Products.

This can be achieved by deriving the GridPrintDocument and overriding its OnPrintPage method. In the override, don't call the base class. Place and draw the grids wherever you want it in the page layout. Please refer the following Knowledge Base(KB) article link that helps in printing multiple grids in a page.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=63

If you like to print multiple grids on each page, then refer the below KB article that helps in doing this. Also this helps in adding header and footer on each page.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=62

Best regards,
Haneef

mattia locatelli
Replied On October 5, 2007 10:23 AM

Hi Haneef,
thank you for the quick response but I've already saw this sample. What I need to do is to print a variable number of grid in the same print document, every grid can also occupy more than one page. Is it possible?

Thanks again.

haneefm [Syncfusion]
Replied On October 5, 2007 04:04 PM

Hi Ermes,

Here is a minimal sample that shows you "How to print the variable number of grid with multiple pages in a gridPrintDocument?". Please try the sample and let me know if this helps.
PrintTwoGridsOnSamePage_CS.zip

Best regards,
Haneef

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.

;