Hi guys.
I'm facing a PdfPtable nested in a PdfPCell.
this is my code:

PdfPTable spettabile = new PdfPTable(1);
addToCell(spettabile,"Spettabile",font8b);  //method to add in a PdfPCell
some text with a particular font
addToCell(spettabile,des_customer,font7);


PdfPTable testata = new PdfPTable(3);
testata.setTotalWidth(this.mm2pt(170));   //mm2pt converts from millimiter
to points

PdfPCell cellHead = new PdfPCell(spettabile);
cellHead.setColspan(3);
cellHead.setHorizontalAlignment(Element.ALIGN_RIGHT);
testata.addCell(cellHead);

What it was supposed to show me is a colspanned cell with a nested table
("spettabile") aligned on the right, but that table is still on the left of
my cell.
i can't see the solution.
any help is REALLY welcome.


Roberto.




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to