itext table spares page with a gap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m6s
    New Member
    • Aug 2007
    • 55

    itext table spares page with a gap

    Good morning. I have a major issue with iText. Major but most of all ridiculous.
    After the cration of a table like that
    Code:
    tbl = new Table(7, dataTbl.Rows.Count);
    					tbl.setBorderColor(System.Drawing.Color.LightGray);
    					tbl.setDefaultCellBorderColor(System.Drawing.Color.LightGray);
    					tbl.setAlignment(Element.__Value.ALIGN_CENTER);
    					tbl.setPadding(2);
    					tbl.setWidth(( w - 495 ));
    I pass in the data from a DataTable
    Code:
    foreach ( DataRow row in dataTbl.Rows ) {....}
    And then I do
    Code:
    printout.document.add(tbl);
    pr = new Paragraph("SignDate" + SignDate, new com.xxxx);
    printout.document.add(pr);
    printout.document.getPageNumber();
    printout.close();
    The problem now is that when the foreach loop, consumes more than one page, the later information of Signing the document or other text attributes, go after a half of a page, which this half...is a gap. I have no clue, why...I can't understand from the tutorials if I have missed, and in the end perhaps what to notice. As there is no drawing capability to see where really a footer, a header, a table stops.And why I have this bizzare gap and spare of a page.
    Has anyone confronted this situation ?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What language are you implementing your solution in?
    Java?

    Comment

    • m6s
      New Member
      • Aug 2007
      • 55

      #3
      I am developing it in .net , with C sharp (who has constrained 20 words per reply )!!!!!

      Comment

      Working...