Free Support Forum - aspose.com

Error 'GetColWidths()' is an unknown XSLT function when using BindToHtml

I found this code in the forums which looks reasonable enough and so I tried a test.

pdf = New Aspose.Pdf.Pdf
Dim surl As String = Request.Url.ToString()
Dim webClient As WebClient = New WebClient
byte[] myDataBuffer = webClient.DownloadData(surl)
MemoryStream(postStream = New MemoryStream(myDataBuffer))
pdf.BindHTML(postStream)
pdf.Save(“c:\test.pdf”)

but I get an error shown in the subject line when using the 3.6.1.0 dll. If anyone has any
suggestions or alternate approachs THANK YOU!

I simply need to create a PDF of the current .aspx page and then attach it to an email.
Wasnt expecting to hit the wall so soon. Thanks.

Hi,

Thank you for considering Aspose.

Can you please zip your aspx file and attach it here. We will check it and let you know.

Thanks.