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. Image for the cookie policy date

GDI Print/Print Preview

If using GDI to draw text on a grid, the print/print preview functionality does not render on the printer preview/print device context. In the attached sample press the print preview button when using GDI PLUS and the text renders, but if you first press the GDI button and then print preview the text does NOT render. GDI Print Bug_7103.zip Thanks, Steve

7 Replies

AD Administrator Syncfusion Team December 30, 2004 08:44 AM

Thank you for your sample. I can see the problem too. I will forward this onto the grid architect so he can look into getting this fixed. As a work-around until we have a release with this addressed, you can test the grid.PrintingMode in your event handler. if (!blnGDIPlus && !this.gridControl1.PrintingMode)


ST Steve October 17, 2005 06:16 PM

Any update to this issue? Thanks


AD Administrator Syncfusion Team October 17, 2005 06:48 PM

No. We still recommend using GDI+ when printing.


AD Administrator Syncfusion Team November 21, 2005 10:56 AM

Would using TextRenderer get around this problem and work for the print/preview? >No. We still recommend using GDI+ when printing.


AD Administrator Syncfusion Team November 21, 2005 11:12 AM

I do not know what you mean by ''using TextRenderer''.


AD Administrator Syncfusion Team November 21, 2005 11:30 AM

.Net Framework v2.0 has a TextRenderer.DrawText, and I wondered about using that to paint in cells, however it looks like it won''t print either. http://msdn2.microsoft.com/en-us/library/ms171753.aspx -Greg


AD Administrator Syncfusion Team November 21, 2005 01:46 PM

I think you are correct in that it cannot be used with printing. It sounds like the same support we offer in our GDI drawing class.

Loader.
Live Chat Icon For mobile
Up arrow icon