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

trying samples ... getting errors


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?

3 Replies

KC Karthikeyan Chandrasekar Syncfusion Team 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.



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



Please let us know if you need any further assistance.




JS James Stewart 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?

KC Karthikeyan Chandrasekar Syncfusion Team 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.



Please let us know if you need any further assistance.



Live Chat Icon For mobile
Up arrow icon