BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
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?
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.
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
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?
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