Try: ae.writeSelectedRows(0,-1,0,height,abrechnungErgebnis);
The template is an autonomous entity. Margins inside the template are relative to the template, not the page, and that may throw your table outside the template bounds. Best Regards, Paulo Soares > -----Original Message----- > From: Marc Lustig [SMTP:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 12:15 > To: [EMAIL PROTECTED] > Subject: [iText-questions] trouble writing PdfPTable toPdfTemplate > > Hi, > > I am having trouble writing a PdfPTable to a template. > The code looks basically like this: > > PdfContentByte byteWriter = writer.getDirectContent(); > PdfPTemplate abrechnungErgebnis = byteWriter.createTemplate(totalWidth, > height); > byteWriter.addTemplate(abrechnungErgebnis, leftMargin(), > Util.toPts(140)); > PdfPTable ae = new PdfPTable(2); > // adding cells.... > ae.setTotalWidth(totalWidth); > ae.writeSelectedRows(0,-1,leftMargin(),Util.toPts(160),abrechnungErgebni > s); > > > The problem is that nothing appears. The size variables should be > alright. > > Can you help? > > Thanks, > Marc > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/0 > 1 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
