cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in printing crystal report printing

Former Member
0 Kudos

i had developed a application in net 2003 and was printing the crystal report directly to printer using printtoprinter command. the application was deployed in windows 2003 server 32 bit. The crystal report was using Arial Unicode MS fonts. Now i have upgraded my application to net 2005 and deployed it on windows server 2008 64 bit. Now when it is giving Generic Error Occurred GDI+ when executing printtoprinter command. this error is coming when iam using unicode fonts, but i need to use unicode fonts as my reports are in HINDI.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Did you apply SP 1 also?

I assume you updated the references to 10.2 from 9.x?

GDIPlus is the one that renders the fonts, could be a Microsoft issue.

What does DebugDiag tell you?

Don

Former Member
0 Kudos

Error is generic error occured GDI+ with details as below

System.Runtime.InteropServices.ExternalException was unhandled by user code

  ErrorCode=-2147467259

  Message="A generic error occurred in GDI+."

  Source="System.Drawing"

  StackTrace:

       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)

       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintPageEventHandler(Object sender, PrintPageEventArgs e)

       at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)

       at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)

       at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)

       at System.Drawing.Printing.PrintController.Print(PrintDocument document)

       at System.Drawing.Printing.PrintDocument.Print()

       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

       at cmdemo.rep_udrankhat1.cmdprint_Click(Object sender, ImageClickEventArgs e) in E:\cmdemo_2005\rep_udrankhat1.aspx.vb:line 198

       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)

       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

0 Kudos

Is the MS Arial unicode font installed on that OS?

Try a simple one liner app, just open a report with saved data and see if that generates the same error.

If it doesn't check your WEB.Config or app.config file and make sure it doesn't have both 10.2 and 12 references.

Is this a windows or web app?

Compiled in 32 or 64 bit?

If WEB is the App pool running in the same as intended and CR runtime installed?

Answers (0)