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 GDBG

Hello. Syncfusion team.
I appreciate for your replies.
And.. I have other question about print for
GDBG

1. I want to print specific word in every page something like watermak..
(ex : There is company name at bottom of paper)
2. Is there any way to adjust left and right space? I want to print all colums at one paper. But coulms are so many....;;
3. Is there any way to print specific page,
or specific row of GDBG ?
There are many datas in GDBG but
all datas are printed when I print.
Please.. help me.
Thank you.



1 Reply

RC Rajadurai C Syncfusion Team January 28, 2009 12:09 PM UTC

Hi Chin,

Thanks for your interest in Syncfusion products.

Sorry for the long delay in responding to you.

1) To place the company name at the bottom of the printing page, you can override OnPrintPage() method and display text making certain settings.

2) To print many columns at one paper, the same method mentioned above can be overrided to achieve.

Please refer to the following sample that shows these issues handled in gridcontrol.
http://websamples.syncfusion.com//samples/Grid.Windows/F78119.zip

The overridden method in the sample can be used without any modifications for GridDataBoundGrid.

3) To print specific page, you can manually set it through the following code:

pd.PrinterSettings.PrintRange = PrintRange.SomePages;
pd.PrinterSettings.DefaultPageSettings.PrinterSettings.FromPage = 2;
pd.PrinterSettings.DefaultPageSettings.PrinterSettings.ToPage = 2;


To print specific row,

pd.PrinterSettings.PrintRange = PrintRange.Selection;
gridDataBoundGrid1.Refresh();


Regards,
Rajadurai


Loader.
Live Chat Icon For mobile
Up arrow icon