Hi 

I'm new to iText and I try to setup a table in RTF. When I'm trying to 
open the created document or send it as outputstream to the browser it 
always crashes because of invalid tables. Can anyone help me please?
Thanks Peter

Table table = new Table(6);
table.setPadding(4);
table.setSpacing(0);
table.setWidth(100);
table.addCell(new Phrase("Ausschreibung", textFontBold));
table.addCell(new Phrase("Organisationseinheit", textFontBold));
table.addCell(new Phrase("Funktionsbezeichnung", textFontBold));
table.addCell(new Phrase("Anforderungen", textFontBold));
table.addCell(new Phrase("Auskunftsadresse", textFontBold));
table.addCell(new Phrase("Bewerbungsadresse", textFontBold));
table.endHeaders();
table.setDefaultCellBorderWidth(1);
table.setDefaultRowspan(1);
table.setDefaultHorizontalAlignment(Element.ALIGN_LEFT);

if (vector.size() > 0) {
for (int i = 0; i < vector.size(); i++) {
....
....
table.addCell(new Phrase(erfasst, textFont));
table.addCell(new Phrase(oe, textFont));
table.addCell(new Phrase(fk + "\n" + bgrad + " %", textFont));
table.addCell(new Phrase(profil, textFont));
table.addCell(new Phrase(auskunft, textFont));
table.addCell(new Phrase(bewerbadr, textFont));

        }
        }
document.add(table);

---
sunrise premiumsurf - geben Sie sich nicht mit weniger zufrieden
http://internet.sunrise.ch/de/internet/int_sps.asp
---
sunrise premiumsurf - ne vous contentez pas du minimum!
http://internet.sunrise.ch/fr/internet/int_sps.asp
---
sunrise premiumsurf -  perch� accontentarsi di meno?
http://internet.sunrise.ch/it/internet/int_sps.asp




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to