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.
Syncfusion Feedback

printing GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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.



Rajadurai C [Syncfusion]
Replied On 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


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.

Warning Icon 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.Close Icon

;