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
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);
}