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

Print two grid in the same PrintDocument

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

4 Replies

HA haneefm Syncfusion Team October 4, 2007 03:01 PM UTC

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


HA haneefm Syncfusion Team October 4, 2007 03:03 PM UTC

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


ML mattia locatelli October 5, 2007 02:23 PM UTC

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.


HA haneefm Syncfusion Team October 5, 2007 08:04 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon