This is a migrated thread and some comments may be shown as answers.

Reporting export pdf & printing error in Window Azure

1 Answer 139 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
alan
Top achievements
Rank 1
alan asked on 18 Jul 2013, 09:54 AM


We are using the Telerik Reporting Q2 2013 to generate reports within our web application.

When i click on print button or export to pdf, the below issue occur:

Arithmetic operation resulted in an overflow.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OverflowException: Arithmetic operation resulted in an overflow.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OverflowException: Arithmetic operation resulted in an overflow.]
   Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +223
   Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) +312
   Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) +92
   Telerik.Reporting.Pdf.PdfFontDictionary..ctor(PdfDocument document, PdfFont drawingFont) +109
   Telerik.Reporting.Pdf.PdfFontType0Dictionary..ctor(PdfDocument document, PdfFont font) +21
   Telerik.Reporting.Pdf.PdfFontTable.GetFont(PdfFont font) +89
   Telerik.Reporting.Pdf.PdfPageDictionary.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) +66
   Telerik.Reporting.Pdf.Rendering.PdfRendererGraphicsState.Update(PdfFont font, Brush brush, Int32 renderMode) +47
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.Update(PdfFont pdfFont, Brush brush, Int32 renderMode) +59
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont font, Brush brush, RectangleF rect, Boolean rightToLeft) +52
   Telerik.Reporting.ImageRendering.CanvasPdf.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +174
   Telerik.Reporting.ImageRendering.DocumentBase.WriteTextChunk(String text, RectangleF bounds, RectangleF chunkBounds, RectangleF chunkBoundingRectangle, IFont font, Color foreground, Single angle, StringFormat format) +254
   Telerik.Reporting.Writing.TextLineWriter.WriteContent(DocumentWriter writer, TextLine textLine, ElementPageInfo pageInfo) +342
   Telerik.Reporting.Writing.ContentElementWriter`1.Write(T element, ElementPageInfo pageInfo, DocumentWriter writer) +100
   Telerik.Reporting.Writing.ElementWriter`1.Telerik.Reporting.Writing.IElementWriter.StartWrite(LayoutElement element, ElementPageInfo pageInfo, DocumentWriter writer) +68
   Telerik.Reporting.Writing.WriteStartOperationsDispatcher.Write(IElementWriter writer, LayoutElement element, ElementPageInfo pageInfo, DocumentWriter documentWriter) +19
   Telerik.Reporting.Writing.WriteOperationsDispatcher.Visit(TextLine textLine) +46
   Telerik.Reporting.Processing.TextLine.Accept(ProcessingElementVisitor visitor) +12
   Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element) +20
   Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.BaseRendering.IWriter.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo) +29
   Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.StartElement(LayoutElement element, ElementPageInfo info) +14
   Telerik.Reporting.Paging.PageStartElement.AddToPage(IPageHandler handler) +19
   Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler) +69
   Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler) +34
   Telerik.Reporting.Paging.PageCompositionBase.AddElementsToPage() +31
   Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() +38
   Telerik.Reporting.Paging.PageCompositionBase.OutputPage() +551
   Telerik.Reporting.Paging.PageCompositionBase.CreatePages() +727
   Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, Report report) +42
   Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +311
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) +864
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) +49
   Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) +229
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +206
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +49
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +182
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


Anyi help would be appreciated.



1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 19 Jul 2013, 11:46 AM
Hi Alan,

As we wrote in your support ticket on the same question, this exception looks similar to a known issue of Windows Azure Shared Websites and their support for GDI+. In such scenario our suggestion is to stick to the Azure cloud service.

In future please avoid double posting the same question. If it is an emergency use our ticketing system as a guaranteed way to reach our staff.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
alan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or