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
ADAdministrator 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)
STSteveOctober 17, 2005 06:16 PM
Any update to this issue? Thanks
ADAdministrator Syncfusion Team October 17, 2005 06:48 PM
No. We still recommend using GDI+ when printing.
ADAdministrator 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.
ADAdministrator Syncfusion Team November 21, 2005 11:12 AM
I do not know what you mean by ''using TextRenderer''.
ADAdministrator 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.
ADAdministrator 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.