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

Print GriddataboundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 12:48 PM UTC

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 05:10 AM UTC

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 05:11 AM UTC

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 07:22 AM UTC

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 10:33 AM UTC

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 10:56 AM UTC

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.

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

;