Hi all,
I use iText 2.0.6 to create a table where the header column has an
horizontal writing and the following ones a vertical writing texts.
It is almost working as I expect apart from one cell where its text is
automatically wrapped
although the cell's height seems enough to print everything on one
line...
What is strange is that the cell's width isn't big enough to print 2
vertical lines,
so only part of the text is printed with an empty white space at the
end.
I changed the cell's width, and could read the text on 2 lines, but I
want it on one line only.
Any hint, how to get the expected result?
The code I use:
mainTable = new PdfPTable(headers.length);
Font fontBold = getFontBold();
mainTable.setHeaderRows(1);
mainTable.setTotalWidth(calculateColumnWidth(columnWidths));
pdfPTable.getDefaultCell().setPadding(PdfConstants.DEFAULT_PADDING);
pdfPTable.getDefaultCell().setPaddingTop(PdfConstants.DEFAULT_TOP_PADDIN
G);
mainTable.addCell(new Phrase(headers[0], fontBold));
pdfPTable.getDefaultCell().setRotation(90);
for (int i=1; i<headers.length; i++)
mainTable.addCell(new Phrase(headers[i], fontBold ));
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/