wirthi
2012-04-27 16:18:24 UTC
Hi!
I'm quite new in POI and I want to create a XSLFTable but it does not work
properly. There is a cell shown in the powerpoint document but it is totally
unstyled and doesn't have any text in it.
Here my code:
XMLSlideShow slideshow = new XMLSlideShow();
XSLFSlide slide = slideshow.createSlide();
XSLFTable newTable = slide.createTable();
newTable.setAnchor(new Rectangle(100, 100, 100, 100));
XSLFTableRow tableRow = newTable.addRow();
XSLFTableCell cell = tableRow.addCell();
XSLFTextParagraph textparagraph = cell.addNewTextParagraph();
XSLFTextRun textrun = textparagraph.addNewTextRun();
textrun.setText("Any Text");
textrun.setFontColor(Color.BLUE);
textparagraph.setTextAlign(TextAlign.CENTER);
Any ideas?
Regards
Wirthi
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-tp5670738p5670738.html
Sent from the POI - User mailing list archive at Nabble.com.
I'm quite new in POI and I want to create a XSLFTable but it does not work
properly. There is a cell shown in the powerpoint document but it is totally
unstyled and doesn't have any text in it.
Here my code:
XMLSlideShow slideshow = new XMLSlideShow();
XSLFSlide slide = slideshow.createSlide();
XSLFTable newTable = slide.createTable();
newTable.setAnchor(new Rectangle(100, 100, 100, 100));
XSLFTableRow tableRow = newTable.addRow();
XSLFTableCell cell = tableRow.addCell();
XSLFTextParagraph textparagraph = cell.addNewTextParagraph();
XSLFTextRun textrun = textparagraph.addNewTextRun();
textrun.setText("Any Text");
textrun.setFontColor(Color.BLUE);
textparagraph.setTextAlign(TextAlign.CENTER);
Any ideas?
Regards
Wirthi
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Create-XSLF-Table-What-am-I-doing-wrong-tp5670738p5670738.html
Sent from the POI - User mailing list archive at Nabble.com.