DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
HTML to PDF  
DwZone Forum Index -> HTML to PDF

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 181 to 190 of 330 (Total: 187) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re:Error displaying page  
View this persons public profile  [email protected]   20:20 25 Sep 2009  
   Re:Error displaying page  
View this persons public profile  gianluigi   0:37 26 Sep 2009  
   Re:Error displaying page  
View this persons public profile  [email protected]   5:07 26 Sep 2009  
   Re:Error displaying page  
View this persons public profile  gianluigi   5:53 26 Sep 2009  
   Not working: write permission problem  
View this persons public profile  [email protected]   15:57 11 Sep 2009  
   Re:Not working: write permission problem  
View this persons public profile  gianluigi   6:11 13 Sep 2009  
   Re:Not working: write permission problem  
View this persons public profile  [email protected]   20:39 14 Sep 2009  
   Re:Not working: write permission problem  
View this persons public profile  gianluigi   10:43 15 Sep 2009  
    server error when using a table  
View this persons public profile  [email protected]   4:52 5 May 2009  
 
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






 
Reply to this current thread  View this persons public profile  Send Private Message
   Re:server error when using a table  
View this persons public profile  gianluigi   9:57 5 May 2009  
Last Visit: Wednesday 14 May, 2025 11:59 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-2

Jump to: