Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - How to create a table?
  FAQ FAQ  Forum Search   Register Register  Login Login

How to create a table?

 Post Reply Post Reply
Author
Message
Will Donaldson View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Apr 09
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Will Donaldson Quote  Post ReplyReply Direct Link To This Post Topic: How to create a table?
    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----
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store