You must have setTotalWidth() somewhere. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dmitri > Sent: Tuesday, February 15, 2005 9:08 AM > To: [email protected] > Subject: [iText-questions] Is > PdfPTable.calculateHeightsFast() working? > > float[] widths2 = {1.01f, 8.91f, 0.77f, 1.01f, 0.77f, 0.77f, > 1.03f, 0.99f,0.77f, > 0.83f, 0.81f, 0.90f, 1.01f, 0.99f, 0.92f, 0.92f, 1.00f, > 0.90f, 0.92f, 0.92f, > 0.92f, 0.92f, 1.00f}; > PdfPTable firstPart = new PdfPTable(23); > firstPart.setWidthPercentage((float)100); > firstPart.setWidths(widths2); > firstPart.getDefaultCell().setPadding(0.5f); > firstPart.getDefaultCell().setVerticalAlignment(PdfPCell.ALIGN > _MIDDLE); > firstPart.getDefaultCell().setHorizontalAlignment(PdfPCell.ALI > GN_CENTER); > . > . adding some cells > . > firstPart.calculateHeightsFast(); > float i = firstPart.getTotalHeight(); > > and after that i = 0.0; > > What is i do wrong > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
