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 grid from from own library

Thread ID:

Created:

Updated:

Platform:

Replies:

72028 Feb 27,2008 09:57 AM UTC Mar 31,2008 07:50 AM UTC Windows Forms 1
loading
Tags: GridControl
Tim
Asked On February 27, 2008 09:57 AM UTC

Hi there,

I am writing my own print library, but i have a little problem when printing a GridControl. I use the DrawGrid() method to draw the grid to my preview window. I can see the grid, but the visual style of the grid is the same as on screen. This is not what I want, I want the print style from the grid. So I discovered that there is a grid.printingmode property that can be turned on or off. When i'm turning it off, I see the grid (same as on the screen), but when I turn it on my grid is gone from the preview/print.

Is there a way to print the grid using the DrawGrid() method?

Thanks!

Tim.


Administrator [Syncfusion]
Replied On March 31, 2008 07:50 AM UTC

Hi Tim,

Thank you for your interest in Syncfusion products.

Please refer this browser sample:
C:\Program Files\Syncfusion\Essential Studio\6.1.0.34\windows\Grid.Windows\Samples\Printing\PrintToFit

This sample shows you how to print a grid on a single page. It derives a GridPrintDocument class in order 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.

Kindly let us know if this helps.

Regards,
G.Yavana




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

;