Last post Aug 13, 2009 10:31 AM by henne
Aug 13, 2009 03:52 AM|Henne|LINK
I am using iTextSharp for creating pdf documents out of my asp.net application.
Now I want data to be presented in a table and have a few problems with it.
I want the table to look like that:
Package Content Amount
P00001 4x K0001 10
P00002 4x K0023 8
So I created in PdfPTable with 3 Columns and filled it with cells. But I have problems filling the content collumn, as the data there must be presented as a list (or perfectly in a PdfPTable) and Table.AddCell is only valid for strings.
Anybody has an idea how to realize that problem?
Aug 13, 2009 10:01 AM|sirdneo|LINK
There is a very good article for exporting DataTables to PDF. See
Aug 13, 2009 10:31 AM|Henne|LINK
just made a stupid mistake by trying to insert PDFPTable like this:
oCell = New PdfPCell( _
New iTextSharp.text.Phrase( _
FontFactory.GetFont("Arial", 12, iTextSharp.text.Font.BOLD)))
Just had to do it this way and now it works: