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. Image for the cookie policy date
close icon

PDF error

Hi Guys,

I am facing few PDF issues intermittently. The exception message is pasted below.

1. Invalie regions set at Syncfusion.Pdf.Graphics.Images.Metafiles.TextRegionManager.GetTopCoordinate(Single y)
at Syncfusion.Pdf.Graphics.MetafileLayouter.CheckCorrectCurrentBounds(PdfPage currentPage, RectangleF currentBounds, RectangleF shapeLayoutBounds, PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ShapeLayouter.LayoutOnPage(PdfPage currentPage, RectangleF currentBounds, RectangleF shapeLayoutBounds, PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ShapeLayouter.LayoutInternal(PdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ShapeLayouter.LayoutInternal(HtmlToPdfLayoutParams param)
at Syncfusion.Pdf.Graphics.ElementLayouter.Layout(HtmlToPdfLayoutParams param)
at Syncfusion.Pdf.Graphics.PdfMetafile.Layout(HtmlToPdfLayoutParams param)
at Syncfusion.Pdf.Graphics.PdfLayoutElement.Draw(PdfPage page, Single[] Top, PdfLayoutFormat format)
at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.DrawMetaFile(PdfPageBase page, PdfMetafileLayoutFormat format)
at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.Render(PdfPageBase page, PdfMetafileLayoutFormat format)



2. Error HRESULT E_FAIL has been returned from a call to a COM component. at Syncfusion.HtmlConverter.Natives.IWebBrowser2.Navigate(String URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
at Syncfusion.HtmlConverter.Natives.AxWebBrowser.Navigate(String uRL, Object& flags, Object& targetFrameName, Object& postData, Object& headers)
at Syncfusion.HtmlConverter.HtmlConverter.FromString(String html, String baseUrl, ImageType type)
at Syncfusion.HtmlConverter.HtmlConverter.FromString(String html, String baseUrl, ImageType type, Int32 width)
at Syncfusion.HtmlConverter.HtmlConverter.FromString(String html, String baseUrl, ImageType type, Int32 width, Int32 height)
at Syncfusion.HtmlConverter.HtmlConverter.FromString(String html, String baseUrl, ImageType type, Int32 width, Int32 height, AspectRatio aspectRatio)
at Syncfusion.HtmlConverter.HtmlConverter.Convert(String html, String baseurl, ImageType type, Int32 width, Int32 height, AspectRatio aspectratio)

Please help me to solve this

Thanks

2 Replies

AN Ani August 25, 2010 07:11 AM UTC

Please reply to my earlier post.. The issue mentioned above is happening in our production server


AG Angappan G Syncfusion Team August 26, 2010 08:55 AM UTC

Hi Anil,

Thank you for your interest in Essential Studio.

1.” Invalid regions set at Syncfusion.Pdf.Graphics.Images.Metafiles.TextRegionManager.GetTopCoordinate(Single y)” exception:

We are unable to reproduce the issue on our side, could you please provide us the sample in which you are facing the issue, this will help us a lot in further investigating the issue.

2. “Error HRESULT E_FAIL has been returned from a call to a COM component”

Please include the attribute AspCompat='true' in the @Page directive.

Here is the code snippet

[Aspx]
<%@ Page Language='VB' AutoEventWireup='false' AspCompat='true' %>

Please try this and let us know if you have any queries.

Regards,
Angappan.

Loader.
Live Chat Icon For mobile
Up arrow icon