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/
