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.

Print GriddataboundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

52477 Nov 29,2006 05:54 AM Nov 30,2006 05:56 AM Windows Forms 6
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 29, 2006 05:54 AM

HI,
I am using grid Data Bound Grid. I am trying to print the Grid. But its printing only what is shown on Scrren. I Need all Data should Be print.

Please resolve the problem ASAP.


Cheers
Tannearu Gupta

Administrator [Syncfusion]
Replied On November 29, 2006 07:48 AM

Hi Tannearu,

The PrintToFit browser sample ( \Syncfusion\Essential Studio\4.3.0.25\windows\Grid.Windows\Samples\In Depth\PrintToFit\) shows you how to print a grid on a single page. It derives a GridPrintDocument class to handle the printing of the entire grid on a single page. It does this by drawing the full size grid to a large bitmap and then drawing this bitmap scaled to fit the output page.

Here is a path.
\Syncfusion\Essential Studio\4.3.0.25\windows\Grid.Windows\Samples\In Depth\PrintToFit\

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 30, 2006 12:10 AM

Hi Haneef,
Thanks for your reply. I am using grid data bound Grid and when i am trying to add following code its giving error.

GridPrintToFitDocument pd = new GridPrintToFitDocument(this.gridDataBoundGrid1, true);

is there any extra namesapce. Give me reply asap.

Please resolve the problem asap.


Cheers
Tannearu Gupta

Tannearu Hazarathaiah Gupta
Replied On November 30, 2006 12:11 AM

Hi Haneef,
Thanks for your reply. I am using grid data bound Grid and when i am trying to add following code its giving error.

GridPrintToFitDocument pd = new GridPrintToFitDocument(this.gridDataBoundGrid1, true);

is there any extra namesapce. Give me reply asap.

Please resolve the problem asap.


Thanks & Regards
Tannearu Gupta

Administrator [Syncfusion]
Replied On November 30, 2006 02:22 AM

Hi Tannearu,

The GridPrintToFitDocument class derives a GridPrintDocument class to handle the printing of the entire grid on a single page. It does this by drawing the full size grid to a large bitmap and then drawing this bitmap scaled to fit the output page. You can copy the GridPrintToFitDocument class here and add to your application.

Use the below code to create the object of the GridPrintToFitDocument class.
GridPrintToFit.GridPrintToFitDocument pd = new GridPrintToFit.GridPrintToFitDocument(this.gridDataBoundGrid1, true);

Best Regards,
Haneef

Tannearu Hazarathaiah Gupta
Replied On November 30, 2006 05:33 AM

Hi haneef,
Its not working. Can u post me any code snippet or example.

Please resolve the problem asap

Regards
Tannearu

Administrator [Syncfusion]
Replied On November 30, 2006 05:56 AM

Hi Tannearu,

Please try the attached sample and let me know if this helps.

Here is a sample.
GDBGPrintToFit.zip

Best Regards,
Haneef

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.

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.

;