Hi there,

I've got nested-table headers ("Option/Cost"), 
and i want one row's cell to span across 
the entire table, but it doesn't work.
the cell called 'provident' must go all 
the way across, but it only goes to the end of the 3rd header cell.
I tried setColspan with 6,7,8,9,10,11,12, but they are invalid.

Thanks for any help,
Dan

                Phrase option = new Phrase("Option", bold);
                Phrase cost = new Phrase("Cost", bold);
                Table heading = new Table(2,1);
                heading.addCell(option, new Point(0,0));
                heading.addCell(cost, new Point(0,1));

Cell provident = new Cell(new Phrase("Provident", bold)); 
provident.setColspan(5); 
provident.setHorizontalAlignment(Element.ALIGN_CENTER);            
            
            rowNdx = 0;
            
            table.addCell("", new Point(rowNdx,0));
            table.insertTable(heading, new Point(rowNdx,1));
            table.insertTable(heading, new Point(rowNdx,2));
            table.insertTable(heading, new Point(rowNdx,3));
            table.insertTable(heading, new Point(rowNdx,4));
            table.insertTable(heading, new Point(rowNdx,5));

            rowNdx++;
            
            table.addCell(p3, new Point(rowNdx,0));
            table.addCell(provident, new Point(rowNdx,1));
            
            document.add(table);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to