Sherlene Tan
Sherlene Tan

Reputation: 77

Type 'iTextSharp.text.Table' is not defined

I want to know why Type 'iTextSharp.text.Table' is not defined. I already imported iTextSharp.text , iTextSharp.text.pdf, iTextSharp.text.html, iTextSharp.text.html.simpleparser.

Dim gvTable As New iTextSharp.text.Table(columns, tableRows)

Upvotes: 2

Views: 7523

Answers (1)

Mark Hall
Mark Hall

Reputation: 54542

In searching the Internet the only thing I could find about iTextSharp.Text.Table was example code. I looked at the SVN on SourceForge and there is no Table that is part of the text namespace, it looks like it was deprecated in the current version. Your best bet would be to use iTextSharp.text.pdf.PDFPTable. (Documentation from iText link) or to find a Version of iTextSharp previous to version 5. If you look at this SO Question/Answer there is a link to iTextSharp version 4.1.6 this version does have iTextSharp.text.Table. Here also is a blog that has links to the Source and dll.

Upvotes: 1

Related Questions