Posted on: 11/14/2014 2:13:31 AM | Views : 572

Why the line highlighted below always gets an error on run saying it is null ?
Pls help... VS2010 says HTMLWorker is obsolete. Anyone know how to fix it ?Aim = output whole page to pdf
Thanks

   Response.ContentType = "application/pdf"         Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.pdf")         Response.Cache.SetCacheability(HttpCacheability.NoCache)         Dim sw As New StringWriter()         Dim hw As New HtmlTextWriter(sw)         Me.Page.RenderControl(hw)         Dim sr As New StringReader(sw.ToString())         Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)   ...

Go to the complete details ...