Print document question

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

4 Replies

HA haneefm Syncfusion Team 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


KE kesav 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


HA haneefm Syncfusion Team 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


KE kesav 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

Loader.
Up arrow icon