Hi,
I am trying to create a html document to pdf,in my app there isn't a html document to load from file
when specific uri given eg: testreport.aspx
please find the code below
Dim filename As String = test + ".pdf"
Dim path As String = Commons.Files.DownloadPath + filename
Dim doc As New PdfDocument()
Dim url As String = "testreport.aspx"
doc.SaveToFile(path)
doc.Close()
Response.Redirect("/mydownload/" + filename)
Erorr:
ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
Please advice me as soon as possible.
Thanks in advanced.