Print Page | Close Window

How to create a table?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1067
Printed Date: 25 Jun 25 at 5:55PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to create a table?
Posted By: Will Donaldson
Subject: How to create a table?
Date Posted: 22 Apr 09 at 12:11AM
Hello,
 
I need to create PDF document lists "on-the-fly" from user-defined SQL Statements. Here is an example for creating a HTML table. What is the best way to do this using my newly purchased library?
 
Sorry if this is a no-brainer. I am completely new to creating PDFs and this library. Is there a Table element that I overlooked in the documentation? Are there several ways to do this? All input is appreciated.
 
Thanks,
Will
 
<-snipped----
<table colspan="6" cellpadding="5" border="0" style="border-collapse: collapse" bordercolor="#111111" cellspacing="0">
    <tr>
     <th>Show</th>
     <th>Reported</th>
     <th>User Name</th>
     <th>Company</th>
     <th>Type</th>
     <th>Number</th>
     <th>Message</th>
    </tr>
    <% ' show the data
      Do Until oRecordSet.EOF
         Response.Write("<TR>")
   Response.Write("<TD><a href='ShowError.asp?id=" & oRecordSet("Id") & "'>Details</a></TD>")
         Response.Write("<TD>" & FormatDateTime(oRecordSet("ServerDate"),0) & "</TD>")
         Response.Write("<TD>" & oRecordSet("UserName") & "</TD>")
         Response.Write("<TD>" & oRecordSet("CompanyName")& "</TD>")
         Response.Write("<TD>" & oRecordSet("Type") & "</TD>")
         Response.Write("<TD>" & oRecordSet("Number") & "</TD>")
         Response.Write("<TD>" & oRecordSet("Message") & "</TD>")
         Response.Write("</TR>")
      oRecordSet.MoveNext
      Loop
   %>
</table>
<-snipped----



Replies:
Posted By: Ingo
Date Posted: 22 Apr 09 at 2:20AM
Hi Will!

The library doesn't support real tablecreation in the document.
There are special html-functions to put few html-formattings into the document but not for tables.

If you want to do this you have to use the normal draw-functions. It's possible to get a "table-like" output with the library but there aren't real supporting functions to do this.

Cheers, Ingo
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk