Hello,
First of all, thanks for your implementation that helps a lot in
generating PDF and RTF files.
I'm, anyway, encountering a problem using the com.lowagie.text.Table to
generate tables.
I have an international application that uses the iText API to generate
some reports in both PDF and RTF. In these reports, I need to build tables
to display some informations.
My problem is that columns don't seem to have an auto size option.
Without giving any width attribute to my columns, I get 8 columns of the
same size.
If I use the Table.setWidths() method, it fixes columns widths.
But I can't tell the size of each column as the same report is used in 3
languages.
For example, if I set the column size to 15%, that fits english languages
needs (in english, the label for the cell is "Result Time"), but it
doesn't for the german translation (in german, the label is "Max.
Ueberbrückungszeit").
Is there any way for the table to auto adjust the width of the column,
depending on the content ?
I tried to use the setNoWrap option of the version 1.02b, but that just
hidded the second German word for the translation (I think that's not the
way HTML deals with NoWrap, is it ?).
I tried to use the setMaxLines option of the version 2.1.3, but that is
exactly the same.
Do you, please, have any idea on how I can deal with that ?
Thanks by advance.
Best regards / Cordialement
-------------------------------------------------------------------------------
Cédric MARFIL
IT Department France
Enersys - Enersys Group
Phone: +33(0)3 21 60 27 85
Email: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php