The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there a way to use the HtmlConverter and not get the following error without placing AspCompat ="true" at the top of the aspx page because this is not an option for my application.
ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
GMGeetha M Syncfusion Team October 13, 2011 07:11 AM UTC
Hi Kevin,
Thank you for evaluating Syncfusion products.
Our HTMLConverter makes use of WebBrowser control which can run only in STA mode. Please make use of the following code to avoid Active X error: Thread t = new Thread(CreateDocument); t.SetApartmentState(ApartmentState.STA); t.Start(); t.Join();
Please try this and let me know if you have any questions.