Hi all,

I want to add some text in a column, and then jump to another one to write
something else. I tried to use MultiColumnText, but it doesn't seem to work
well. Here is the code :

           MultiColumnText mct = new MultiColumnText();
           mct.addSimpleColumn(document.left(), document.right()*1/3-10);
           mct.addSimpleColumn(document.right()*1/3, document.right());

           mct.addElement(new Paragraph("blablabla"));

           mct.nextColumn();
           mct.addElement(new Paragraph("blablabla"));

           mct.nextColumn();
           mct.addElement(new Paragraph("blablabla"));

           document.add(mct);

With this code, the text goes in the first column. if I add nextColumn()
before I add some text, the first column is jumped. I don't understand how
the composant and the method "nextColumn()" work.
Is there another solution to force the text to jump to the next column, or a
different composant to do it ?

Thanks,

--
Vincent CAURIER
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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