PDFDoc Scout |
PDFDoc Scout library - Sample
How to draw tables to PDF document using
HTML text format and PDFDoc Scout library:
You can download the source code of this example here: pdfdocscout_drawing_table_using_html_formatting.zip This example describes how to draw tables in generated PDF document with easy using built-in HTML text formatting support in PDFDoc Scout library Screenshot of generated PDF document with HTML coded table:
Code to compose HTML code for table and draw this table in PDF: PDFDoc.InitLibrary "demo", "demo"PDFDoc.OutputFilename = "draw_table.pdf" PDFDoc.AutoOpenGeneratedPDF = true PDFDoc.BeginDocument ' compose HTML code for Table with 4 columns and 5 rows
(header + 4 rows) Dim RowHeaders(5), RowFooters(5), Cells(5) RowHeaders(1) = "<tr bgcolor='#0000CC'>"
' header row RowFooters(1) = "</tr>" ' header row
' now composing HTML code for whole table ' adding table footer ' finally add HTML box to the current page PDFDoc.EndDocument ' close PDF document generation ' disconnect from library You can download the source code of this example here: pdfdocscout_drawing_table_using_html_formatting.zip
"Hello, World!" quick start step-by-step tutorials: |
|
|
||