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.
Syncfusion Feedback

Problem when converting html to pdf in Sharepoint env.

Thread ID:

Created:

Updated:

Platform:

Replies:

91571 Nov 24,2009 11:05 AM UTC Nov 26,2009 04:34 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: PDF
Tuan Ngo
Asked On November 24, 2009 11:05 AM UTC

Hello,

I got the problem when using HtmlConverter to convert html to pdf. It throws exception: "ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment ...".

I also did the same as following instruction http://www.syncfusion.com/support/forums/pdf-aspnet/90473/html-to-pdf-conversion- (another guy have the same problem as), but application page of sharepoint do not understand AspCompat="true" attribute.

Maybe HtmlConverter object from System.Windows.Form cannot be understood by Sharepoint?

Any suggestion?

Regards,
Dat

Jean-Claude Quenaon
Replied On November 24, 2009 03:18 PM UTC

You have to run the code to convert in a new process (STA mode).

Tuan Ngo
Replied On November 25, 2009 07:22 AM UTC

The issue is solved.

Thank you,

Divya G [Syncfusion]
Replied On November 26, 2009 04:34 AM UTC

Hi Dat,

Glad to know that your problem has been solved.

Please let me know if you have any other queries.

Regards,
Divya.G

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.

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

;