Good morning. I have a major issue with iText. Major but most of all ridiculous.
After the cration of a table like that
I pass in the data from a DataTable
And then I do
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 ?
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 ));
Code:
foreach ( DataRow row in dataTbl.Rows ) {....}
Code:
printout.document.add(tbl); pr = new Paragraph("SignDate" + SignDate, new com.xxxx); printout.document.add(pr); printout.document.getPageNumber(); printout.close();
Has anyone confronted this situation ?
Comment