Hi Bruno,

Thanks for the reply, i'm still having some trouble.

I put my table in a column with rectangle wider than the page width,
But it just chops off the columns that don't fit.
My code re-draws the table on the next page.  
But i'd like it to draw only the part that was chopped off on page 1.

                ColumnText c1 = new ColumnText(cb);
                float yvalue = ct.getYLine();
                c1.setSimpleColumn(0, 0, 800, 600, 15, Element.ALIGN_CENTER);
                c1.addElement(myPTable);
                c1.go();
                
                while (true) {
                        int r = c1.go(true);
                        
                        if ((r & ColumnText.NO_MORE_TEXT) != 0
                         || (r & ColumnText.NO_MORE_COLUMN) != 0) {
                                document.newPage();
                                c1.setYLine(yvalue);

                                c1.setSimpleColumn(0, 0, 800, 600, 15, 
Element.ALIGN_CENTER);
                                c1.addElement(myPTable);
                                c1.go();
                                break;
                        }       
                }

What am i missing?  Sorry if my setSimpleColumn() code looks naive.  I just 
don't see how to start where the table chopped off.  

Thanks,
Dan




--------------------------------------
>Use PdfPtable, DO NOT use class Table.
>Wrap table1 in column1 (use class ColumnText);
>table2 in column2, table3 in column3.
>
>Define the rectangle for each column.
>Perform go() for each column.
>
>As long as one of the three columns has
>more content {
>- invoke newPage();
>- reset the Y value for each column
>- perform go() for each column.
>}
>
>br,
>Bruno 
--------------------------------------
> How can I extend a table length-wise across multiple pages?
>
> eg.
> PAGE 1:
> table1
> table2
> table3
>
> PAGE 2:
> table1-(continued)
> table2-(repeated or not shown)
> table3-(continued)

-------------------------------------------------------------------------
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
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to