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.

GDI Print/Print Preview

Thread ID:

Created:

Updated:

Platform:

Replies:

22957 Dec 30,2004 08:01 AM Nov 21,2005 01:46 PM Windows Forms 7
loading
Tags: GridControl
Steve
Asked On December 30, 2004 08:01 AM

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

Administrator [Syncfusion]
Replied On 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)

Steve
Replied On October 17, 2005 06:16 PM

Any update to this issue? Thanks

Administrator [Syncfusion]
Replied On October 17, 2005 06:48 PM

No. We still recommend using GDI+ when printing.

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On November 21, 2005 11:12 AM

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

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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.

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.

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.

;