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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Print document question

Thread ID:

Created:

Updated:

Platform:

Replies:

60111 Apr 27,2007 02:29 PM UTC May 2,2007 11:46 AM UTC WinForms 4
loading
Tags: GridControl
kesav
Asked On April 27, 2007 02:29 PM UTC

Hi,

Whilie printing a grid I am using Bitmap Image so that all my columns will be displayed on a single page. the sample given by you is working fine to achive my goal. But the BitMap Images (which is printed) resolution is not same as the grid. How can i get the resolution of print document same as that of grid what i have?

Thanks
Kesav

haneefm [Syncfusion]
Replied On April 27, 2007 07:18 PM UTC

Hi Kesav,

You can try setting the SmoothingMode property of the graphic object from the PrintPageEventArgs to SmoothingMode.AntiAlias. Please try the attached sample and let me know if this helps.

Sample : PrintToFitColumns.zip

Best regards,
Haneef

kesav
Replied On April 28, 2007 07:04 AM UTC

Hi Haneef,

Thanks for your quick response. I tried by setting SmoothingMode property to SmoothingMode.AntiAlias, But it didn't worked for me. I couldn't find much difference in the resolution. The resolution of print docment what i got is no where matches with the resolution of my actual grid. Can it be possible to get the grid print document same as that of my actual grid? Plese come up with a solution as it is urgent need for me.

Thanks & Regards
-Kesav

haneefm [Syncfusion]
Replied On April 28, 2007 05:24 PM UTC

Hi Kesav,

To change the image resolution of the print page, you need to call the SetResolution method over the grid imange before drawing the grid image. Please try the attached sample and let me know if this helps.

[c#]
gridBM.SetResolution(3000f,3000f);
g.DrawImage(gridBM, destRect, srcRect, gu);

Sample :PrintToFitColumns.zip

Best regards,
Haneef

kesav
Replied On May 2, 2007 11:46 AM UTC

Hi Haneef,

Thanks for you samples. By printing grid as an image we are able to print all the columns on a single page, but the look of the grid is totally changed. As per our requirement the look of the grid print document should be similar to that of grid what we want to print. Is there any other solution to print all grid columns on single page
without printing as an image?

Thanks
-Kesav

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

;