Thanks, Bruno.
I have created one table that is split up on 2 pages, but each part
should fit 100% of available page size (regarding the margings).
I have attached a pdf showing th table and the available space
represented by a thin rectangle
I have only set the total width but I did not see any influence of
setLockedWidth().
Bruno Lowagie schrieb:
Friedhelm wrote:
Using itextsharp, I have created a table with 20 columns and with
WriteSelectedRows() I can spread it 2 across pages.
Before this, I have to set the total width of the table to 2*(pagewidth
- margin left - margin right).
But the 2 resulting parts of the table do not fit to the pages. What is
the best way for each table part to consume the complete space on one page?
For a single table, I can set WidthPercentage=100 to fit the table on
the page. Is there something to achive this with a spreaded table, too?
I'm not sure if I understand the question well enough,
but if you want to set the total width, you also have
to do setLockedWidth(true);
A table stores two widths: one as a percentage, one absolute width.
iText decides which width to use based on the parameter you set
with setLockedWidth: when false (default) the percentage is used;
when true, the absolute width (aka total width) is used.
HTH,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
|
TestTableOn2Pages.pdf
Description: Adobe PDF document
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/