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.

printing GDBG

Thread ID:





78119 Nov 29,2008 07:45 PM Jan 28,2009 07:09 AM Windows Forms 1
Tags: GridControl
Hyung-Jin Lee
Asked On November 29, 2008 07:45 PM

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

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.

Rajadurai C [Syncfusion]
Replied On January 28, 2009 07:09 AM

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.

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;



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.