I have a runtime error, Please help! Here is my code
Imports Spire.Pdf
Imports Spire.Pdf.HtmlConverter
Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
Dim doc As New PdfDocument()
Dim pgSt As New PdfPageSettings()
pgSt.Size = PdfPageSize.A4
Dim htmlLayoutFormat As New PdfHtmlLayoutFormat()
htmlLayoutFormat.IsWaiting = False
-----> doc.LoadFromHTML("get-onlinequotes.com/calculators/Review.aspx", True, True, True) <------- ERROR HERE
Error is
Server Error in '/' Application.
ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.