Lee Ser Wei <serwei <at> singtel.com> writes:
>
> Hi all,
> Am using nested Tables using insertTable() to created irregular columned
> rows for displaying mixed numeric and long text data.
> But when I added a running Header using setHeaderText(), my first nested
> Table on a new page, or a page-straddling Table gets corrupted and it
> pushes all the subsequent data out of their cells (a direct vertical
> displacement).
> Can anyone advise a quick fix:
> - I've tried fitsPage() on a child Table, dun work -- assume it compared
> this child Table against the document that hasn't added the parent
> Table.
> - I can't use fitsPage on the parent Table cos I've got not way to
> remove the last inserted Table? (should I use addCell (childTable)?)
> - I'm trying to use PdfPTable but it's a whole new paradigm in
> formatting and I dun have the resources to recode everything.
>
> Can anyone advise?
> Thanks!
>
>
>
> Hi
> all,
> Am using nested
> Tables using insertTable() to created irregular columned rows for displaying
> mixed numeric and long text data.
> But when I added a
> running Header using setHeaderText(), my first nested Table on a new page, or
a
> page-straddling Table gets corrupted and it pushes all the subsequent data
> out
> of their cells (a direct vertical displacement).
> Can anyone advise a
> quick fix:
> -ÂI've tried
> fitsPage() on a child Table,Âdun work -- assume it comparedÂthis child
> TableÂagainst the document that hasn't added the parent
> Table.
> - I can't use
> fitsPage on the parent Table cos I've got not way to remove the last inserted
> Table? (should I use addCell (childTable)?)
> - I'm trying to use
> PdfPTable but it's a whole new paradigm in formatting and I dun have the
> resources to recode everything.
>
> Â
> Can anyone
> advise?
> Thanks!
>
Hi all again!
(a) parentTable.insertTable(rowTable);
// if (pdfwriter.getTableBottom(parentTable) - bottommargin < 5){
// parentTable.deleteLastRow();
// document.add(parentTable);
// document.newPage();
// parentTable.deleteAllRows();
// parentTable.insertTable(rowTable);
// }
adding the commented out chunk causes my (a) to give a
"setElement - position already taken"
isolated to just this specific chunk of code, and the if has never evaluated to
true at the poitn of failure.
does getTableBottom modify anything?
please advise, I can't seem to get table to properly cross a page with a
running
page header...
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions