Ruitao Duan wrote: > Hi Bruno, > > Thanks for your reply. PdfPTable.writeSelectedRows is the method that i have > tried: > PdfPTable.writeSelectedRows(0, -1, 100, 300, cb); > > But I have over 1000 rows of data in the table, and that method prints out > all the data in one page only.
That's because you don't use the method correctly. You set the number of rows to be printed to -1; this means you want to print ALL the rows. If you change this for instance to 5, only 5 rows will be printed. Note that the method returns the Y-value of the position where the table ends. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
