Sarah1 wrote: > So I play the example RegisterForm1.java, try to calculate the height of the > PdfPTable, but I always got tableheight = 0.0, why? This is my code. Please > help me.
Turn to page 184 in the book. Read the following Frequently Asked Question: "Why is the returned height 0 when I use table.getRowHeight(0)?" I don't know what more I can say, except for the answer that is written there: "This result is normal. You’ve forgotten to set an important property. Before iText can calculate the height of each row, the available horizontal width must be known. Otherwise, it’s impossible to determine how much space will be needed vertically to display the content of all the cells in a row. The available width is known to iText when the table is added to the document, but at that moment, any information about the row height comes too late. If you want to know the height before adding the table to a page, you have to set the total width of the table." > I really need help. Thanks in advance. No, you don't need help: you need to study. Don't you work for a University? Isn't that what people do at a University? br, Bruno ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/