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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

trying samples ... getting errors

Thread ID:

Created:

Updated:

Platform:

Replies:

114340 Nov 13,2013 06:17 PM UTC Nov 19,2013 12:33 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: PDF
James Stewart
Asked On November 13, 2013 06:17 PM UTC

Hi,

I've tried one of your published snippets to convert and HTML string into a PDF...

/********************************

PdfDocument document = new PdfDocument();


//Initializing the Gecko Rendering Engine


GeckoHtmlRendererControl renderer = new GeckoHtmlRendererControl();


//Initialzing the html converter


HtmlConverter converter = new HtmlConverter(renderer);


//Converting html to pdf


HtmlToPdfResult result = converter.Convert(altbody1, ImageType.Metafile,600,1200, AspectRatio.None);

****************************************************/

I keep getting an error when the system tries to use the Gecko engine...some stuff about it can't instantiate the Activex control (Gecko).

Do I need to install Gecko?  If so; where do I get the correct version.

Why does Mozilla say the Gecko Activex is obsolete? Are you using an obsolete control?



KarthikeyanC [Syncfusion]
Replied On November 14, 2013 07:08 AM UTC

Hi James,

Thank you for your interest in Syncfusion products.

 

Please refer the below link for fixing the ActiveX errors.

http://www.syncfusion.com/support/kb/2309/How%20to%20fix%20the%20ThreadStateException%20%28ActiveX%20control%20cannot%20be%20instantiated%29%20exception%20when%20converting%20HTML%20to%20PDF

 

In addition, please find the link below to install the Gecko Rendering Engine.

http://help.syncfusion.com/ug/wpf/pdf/default.htm#!documents/installationsteps.htm

 

Please let us know if you need any further assistance.

 

Thanks,

Karthikeyan.C


James Stewart
Replied On November 14, 2013 02:10 PM UTC

Wow...kind of primitive posting system...


The problem with the Gecko engine from Mozilla is that I HAVE TO BUILT IT!

I have been unable to find the control, alone, available for download. I do not need the full flavor of the Mozilla engine, only one wee part, and, it not available except by building. Poorly done don't you think?

I mean, everything required should be in the distribution. I shouldn't have to go and search out required components.


So, how do I get this thing to work without Gecko?



KarthikeyanC [Syncfusion]
Replied On November 19, 2013 12:33 PM UTC

Hi James,

Thank you for your update.

 

We can able to convert Html to Pdf without using Gecko Engine. We can make use of MSHTML(IE Rendering Engine) to convert Html to PDF. Please find below the online sample link for using MSHTML to convert HTML to PDF.

 

http://asp.syncfusion.com/Windows/demos/reporting/pdf/Import%20to%20PDF/HTML%20to%20PDF/Sample.aspx

Please let us know if you need any further assistance.

Thanks,

Karthikeyan.C


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.

Warning Icon 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.Close Icon

;