poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril PICARD <picar...@hotmail.com>
Subject Create a Table in an other Table with XWPF
Date Mon, 06 Sep 2010 08:37:11 GMT

HelHello,


I would like to know if it's possible to insert a table in an other table with POI XWPF.


I'm able to create a table :


XWPFTable table=doc.createTable(3,3);

table.getRow(1).getCell(1).setText("EXAMPLE OF TABLE");   

XWPFParagraph p1 = doc.createParagraph();

        

XWPFRun r1 = p1.createRun();

r1.setBold(true);

r1.setText("The quick brown fox");

r1.setBold(true);

r1.setFontFamily("Courier");

r1.setUnderline(UnderlinePatterns.DOT_DOT_DASH);

r1.setTextPosition(100);


table.getRow(0).getCell(0).setParagraph(p1);        

table.getRow(2).getCell(2).setText("only text");


Could you help me to insert a table for example in table.getRow(2).getCell(1)


Thanks.


Cyril.
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message