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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

trying samples ... getting errors

Thread ID:





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


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.



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



Please let us know if you need any further assistance.




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.



Please let us know if you need any further assistance.




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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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