If you need to split columns you can't use auto-splitting. You are right that you need to make your own calculations. Use table events for the headers and footers.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Sam Coomar > Sent: Tuesday, December 21, 2004 12:31 AM > To: [email protected] > Subject: [iText-questions] Big table - many columns AND many > rows - auto splitting > > Hi - excellent job guys!!! > > The requirement is to print a large table such that it has column > wrapping/splitting (because not all columns will fit on one > page). AS WELL AS > row wrapping/splliting (because not all rows will fit on one > page). There could > be more than one wrapping either column wise and/or row wise > (so the end result > will be more than 4 pages) > > I have been looking at 2 methods seperately > > table.setHeaderRows(1); //helps with splitting table if too many rows > > table.writeSelectedRows > (colStart,colEnd,rowStart,rowEndxPos,yPos,canvas); //helps > with printing only > selected cols and rows > > The second method would help - but it seems like I need to > manage the #of rows > and #of columns that can be printed on one page - so I need > to keep track of > what has been printed and what needs to be printed. Also I > will have to go with > a guess of how many rows and cols will fit the page (I think). > > On top of this requirement, we also want to add a header and > footer on every > page - So how would a table that spans across pages play with > Headers and > Footers? - Also - There is a requiremnt to add a footnote > section at the end of > the table - I think this should be easy as I can have another > footnote table > and print once I am done with the data table. > > I have looked at PdfPTable and the wide_table.java examples. > I have also looked > at other examples at examples141.zip - couldn't find > somtheing that will help > me. > > Please help! > thanks!!! > -Sam > > > > > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > 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://productguide.itmanagersjournal.com/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
