Sorry, I submitted this question a few minutes ago, but I don't see it in my dashboard. Perhaps I did it wrong. Here it goes again.
I've tried this post http://www.aspsnippets.com/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx
and it works fine. But it doesn't work when I apply it in my application. Message error is:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 65: PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
Line 66: pdfDoc.Open()
Line 67: htmlparser.Parse(sr)
Line 68: pdfDoc.Close()
Line 69: Response.Write(pdfDoc)
|
Source File: d:\www\docs\users\natural-life.com.ar\autoconsulta\index1.aspx.vb Line: 67
And the stack trace...
My webform contains GridViews and ListViews. Could be that the problem?
Any help?
Thanks in advance,
Fabiola