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
close icon

printing multiple grids

Hi

I've three grids with several Columns and rows.I would like to print these three grids using GridPrintDocument.I've used same technique suggested by you in the following article
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=63
now my problem is if the grids contains more no.of columns,columns are getting trimmed on right side, but instead I would like to shrink the columns. Similarly if the grids contains more no.of Rows they are not moving to next page.

the attached sample gives you complete information regarding my problem.

please suggest me solution for this problem,
also suggest me any other alternative solution for this kind of scenario.

Thanks,
Hari



CS_d7490f67.zip

6 Replies

JJ Jisha Joy Syncfusion Team July 25, 2008 12:49 PM UTC

Hi Hari,

Columns are getting trimmed on right side while printing.

Please refer the modified KB sample that meet your requirement.

Sample link:

http://www.syncfusion.com/support/user/uploads/ModifiedKBSample_117af41f.zip

Please try this and let me know if this helps.

Regards,
Jisha








AD Administrator Syncfusion Team July 26, 2008 06:52 AM UTC

Hi Jisha

Thanks for your reply,

The sample which you send is not working according to what I mentioned.

1.Actually I've 3 grids with different no.of Columns and rows.If the no.of columns are more what I need is
Shrink those columns to appear on same page, they shouldn't get Trimmed.

2.If there are more no.of rows(in all 3 grids) they must move to next pages.

please try to define Grids with 15 or 20 columns and 100 rows then you will understand my problem.

I've also gone through
C:\Documents\Syncfusion\EssentialStudio\5.1.1.47\Windows\Grid.Windows\Samples\2.0\Printing\PrintToFit

Plz tell me an alternative way to print multiple Grids by shrinking the columns into same page and moving records/rows
to next Page.

It is an urgent requirement for me.

I am also sending a sample regarding this.

Thanks,
Hari



PrintMultipleGrids_c015b91f.zip


AD Administrator Syncfusion Team July 28, 2008 05:24 AM UTC

Hi Jisha,

Sorry.Plz ignore above reply.

The Sample you sent is printing only one/first Grid in ONE page even though there are Multiple Grids to Print.

But I want to Print all the (3) Grids.

And in the sample,if the grid consists more Rows they are printed on same page,but i want to print them in next page.

The sample you sent is already present at
C:\Documents\Syncfusion\EssentialStudio\5.1.1.47\Windows\Grid.Windows\Samples\2.0\Printing\PrintToFit

I've already gone through that code.

Plz tell me an alternative way to print multiple Grids by shrinking the columns into same page and moving records/rows to next Page.

please give me suitable suggestion as it's an urgent requirement for me.





AD Administrator Syncfusion Team July 31, 2008 09:13 AM UTC

Please Give me some reply....
I don't wether you understand my problem or not.



AD Administrator Syncfusion Team August 4, 2008 06:33 PM UTC

Hi Hari,
GridControl doesn't have built-in support for this. But you could have a custom PrintDocument and override OnPrintPage to handle things. Here is a sample that prints multiple grids across pages:

http://www.syncfusion.com/support/user/uploads/PrintMultipleGrids_CS_bef3ed1.zip


PrintMultipleGrids_CS.zip


Best regards,
Jay



AD Administrator Syncfusion Team August 5, 2008 11:51 AM UTC

Thanks for your reply Jay.


Loader.
Live Chat Icon For mobile
Up arrow icon