If I use the following table code in my content when I try to create a PDF I get an error (shown below):
Table Code: quote: <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td align="center" width="100%"> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td align="center" colspan="2"><img alt="image" style="width: 293px; height: 93px" src="http://server/uploads/logo.gif" /></td> </tr> <tr> <td><a href="http://www.xxxxxxx.com">www.xxxxxxx.com</a></td> <td align="right"><span style="color: #038ab6">+44 (0)1234 567890</span></td> </tr> </tbody> </table> </td> </tr> </tbody> </table>
Error: quote: Line 6: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Line 7: Dim Pdf As New HtmlToPdf.CreatePdf Line 8: Pdf.Create() Line 9: End Sub Line 10: </script>
Source File: c:\inetpub\wwwroot\dwzAspPdf\PdfMake.aspx Line: 8
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] HtmlToPdf.TagList.GetTableCellsWidth(Int32 Inizio, Int32 Fine) in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\Parser.vb:543 HtmlToPdf.TagList.SetupTableColumnAndWidths(Rectangle PageDim) in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\Parser.vb:476 HtmlToPdf.CreatePdf.Create() in D:\Lavori\_Extension\_ASP\Asp HTML to PDF\HtmlToPdf_ItextSharp\CreatePdf.vb:508 ASP.dwzasppdf_pdfmake_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\dwzAspPdf\PdfMake.aspx:8 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
|
|
|