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.
Unfortunately, activation email could not send to your email. Please try again.

HtmlConverter Class

Thread ID:

Created:

Updated:

Platform:

Replies:

104195 Jun 28,2012 02:56 AM Aug 22,2013 12:44 AM ASP.NET MVC (Classic) 5
loading
Tags: PDF
Angel Montero Rojas
Asked On June 28, 2012 02:56 AM


Hi,
First of all, sorry for my English.

I need to convert html to pdf file. I have Syncfusion Essential Studio 10.2.0.75, but I can't instantiate the HtmlConverter class .
From where I can add this reference to my project?
Thanks in advance
 

Geetha M [Syncfusion]
Replied On June 28, 2012 03:34 AM

Hi Angel,

Thank you for your interest in Syncfusion products.

HtmlConverter makes use of WebBrowser control internally which can run only in STA mode. Hence you need to make use of the following code to facilitate conversion process:

var t = new Thread(Detail);

t.SetApartmentState(ApartmentState.STA);

t.Start();

t.Join();

I had placed a simple sample demonstrating the same in the following link:

http://www.syncfusion.com/downloads/Support/DirectTrac/96034/MVC_Sample1805649400.zip

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

Regards

Geetha


Angel Montero Rojas
Replied On June 28, 2012 06:02 AM

[Updated on 6/28/2012 5:10:33 AM by: angelmontero@monrojan.net]
Hi,
Thanks for the quick response.
I have reviewed the file "Syncfusion.AssemblyManager.40.txt" and GAC assemblies, and in the log there is an installation error:
"Warning: Assembly : Syncfusion.HtmlConverter.Base Framework : 40 Action: File not found in the disk path :C:\Program Files (x86)\Syncfusion\Essential Studio\10.2.0.75\precompiledassemblies\10.2.0.75\4.0\Syncfusion.HtmlConverter.Base.dll Status: failure."
In % windir% \ Assembly" there is no such dll.
The product I have is Syncfusion Essential Studio ASP.NET MVC Edition Binary obtained through CampusMVP.
Is it possible to be a promotional product does not contain those assemblies?
Syncfusion.AssemblyManager.40.txt attached file.
Thanks in advance.
Regards


Syncfusion.AssemblyManager.40_bc33c763.rar

Sivaguru S [Syncfusion]
Replied On June 29, 2012 03:42 AM

Hi Angel,

Thanks for using Syncfusion products.

We have updated the details for the reported query in the support incident 96034.Please refer the incident for further followup.

Please let us know if you have any queries.

Regards,
Sivaguru S

Abigail
Replied On August 14, 2013 05:29 AM

Here is the demo code to convert to html:
namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

RasterEdgeImaging PDF = new RasterEdgeImaging();
public void ConvertPdftoHtml();
{
PDFInputFile = (@"C:/1.pdf");
PDFPageNumber = "1";
HTMLOutputFile = OutputFormat.html;
}
PDF.Save("OutputFormat.html", SaveFormat.Html);
}


Geetha M [Syncfusion]
Replied On August 22, 2013 12:44 AM

Hi Abigail,

Thank you for the details.

Essential PDF does not support exporting PDF files to HTML format. We have logged feature request on this and will back to you once implemented.

Please let us know if you have any questions.

Regards
Geetha

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.

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.

;