locked
iTextSharp table and cell error RRS feed

  • Question

  • User-1040198395 posted

    I am trying to export to pdf a gridview and I am using itextsharp. I have imported libraries:

    using iTextSharp;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using iTextSharp.text.html;
    using iTextSharp.text.html.simpleparser;

    but still does not recognize these two:

    iTextSharp.text.Table

    The type or namespace name 'Table' does not exist in the namespace 'iTextSharp.text' (are you missing an assembly reference?)

    iTextSharp.text.Cell

    The type or namespace name 'Cell' does not exist in the namespace 'iTextSharp.text' (are you missing an assembly reference?)

       

    Tuesday, September 9, 2014 1:42 PM

All replies

  • User465171450 posted

    Which version of iTextSharp are you using? The object model changed in 5. I know this used to work in 4.x.

    Tuesday, September 9, 2014 2:07 PM
  • User-1040198395 posted

    I am using itextsharp.dll 5.5.0.0 and itextsharp.pdfa.dll 5.5.2.0.

    If they have changed it, then how do I export a gridview with itextsharp 5.5.0.0 to pdf?

    Tuesday, September 9, 2014 2:12 PM