Put your table inside the cell of an outer table with the setSplitRows(false).
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of sissip > Sent: Thursday, March 02, 2006 1:25 PM > To: [email protected] > Subject: [iText-questions] RE: no separation of text within a > report with iText (PDF) > > > Thanks for your answer, but i doesn't work! > > The setSplitRows(false) has no effekt! > What do i wrong? > > Thats the code: > > PdfPTable tableMandant = null; > try > { > tableMandant = new PdfPTable(4); > int headerwidths[] = {1, 49,49, 1}; > tableMandant.setWidths(headerwidths); > tableMandant.setTotalWidth(100); > tableMandant.setSplitRows(false); > > for(int i = 0; i < 10; i++ ) > { > tableMandant.addCell(new Phrase("", > > FontHandler.getRealFont(clog, 8, > com.lowagie.text.Font.BOLD))); > tableMandant.addCell(new Phrase("Test", > > FontHandler.getRealFont(clog, 8, > com.lowagie.text.Font.BOLD))); > tableMandant.addCell(new Phrase("Row Split", > > FontHandler.getRealFont(clog, 8, > com.lowagie.text.Font.BOLD))); > tableMandant.addCell(new Phrase("", > > FontHandler.getRealFont(clog, 8, > com.lowagie.text.Font.BOLD))); > } > > } catch (BadElementException ex) { > ex.printStackTrace(System.out); > } catch (com.lowagie.text.DocumentException ex1) { > ex1.printStackTrace(System.out); > } > > I also dont like the lines in the PdfPTable. How can I say, > that the lines > shouldn't be shown in the grid? > Can you help me ones more? > I sent you the pdfs .. to show what i mean. > > Thanks > Sissi > -- > View this message in context: > http://www.nabble.com/no-separation-of-text-within-a-report-wi > th-iText-%28PDF%29-t1210677.html#a3202104 > Sent from the iText - General forum at Nabble.com. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& > dat=121642 > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
