Hi all,

I am trying to use the "setVerticalAlignment" within a cell, (As noted by 
the code below) but it is not aligning vertically centered at all, it is 
right up at the top of the cell.

Did I miss something??   (Before you tell me to look in the book, my book 
is still in the mail and has not arrived yet so I can't.)  I am on a tight 
deadline and would appreciate the help.

        outLine = "Estimate / Tenders Submitted";
        outPara = new Paragraph(outLine, 
FontFactory.getFont(FontFactory.TIMES_ITALIC, 36));
        cell = new PdfPCell(new Paragraph(outPara));
        cell.setBorder(Rectangle.NO_BORDER);
        cell.setHorizontalAlignment(Element.ALIGN_RIGHT);
        cell.setVerticalAlignment(Element.ALIGN_CENTER);
outTable02.addCell(cell);

Thank You.

Glen Hamel
Lead Programmer / Technician
Auric Networks Canada, Inc.
570 Orwell Street, Unit 1
Mississauga, Ontario
L5A 3V7

Phone 905.361.7621
Fax 905.274.3912 
http://www.auricnet.ca

<<image/jpeg>>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to