Skip to Content
Nov 06, 2020 at 10:02 AM

A generic error occurred in GDI+ while viewing report in a C# application Using Unicode Font

966 Views Last edit Nov 09, 2020 at 01:48 PM 3 rev


Error: A generic error occurred in GDI+ while viewing report in a C# application

We've deployed a windows .net application with Crystal Reports .net 2015, version 13.0.15, Using Unicode Fonts - NotoSans

Some Record Report View But Some Record Don't Print don't print on specific machines, which are Windows 7 / Windows 10, 4GB, X64. There machines are brand new.

************** Exception Text ************** System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. at System.Drawing.Graphics.MeasureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat) at CrystalDecisions.Shared.PageRender.MeasureStringAccurate(String text, Font font, SizeF layoutArea, StringFormat format, Graphics g) at CrystalDecisions.Shared.PageRender.draw_FieldObjectInstance(FieldObjectInstance fieldObject, Graphics g) at CrystalDecisions.Shared.PageRender.draw_ReportObjectInstance(ReportObjectInstance instance, Graphics g, Rectangle clipRect) at CrystalDecisions.Shared.PageRender.draw_SectionInstance(SectionInstance section, Graphics g, Rectangle clipRect) at CrystalDecisions.Shared.PageRender.Render(PageObject page, Graphics g, Graphics device_g) at CrystalDecisions.Windows.Forms.PageControl.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I Have Done Below Code -
Memory management - closing and disposing All dataset
Give All permissions on a directory or folder

Please help!!