All,

I am new to POI. I need to create a .pptx file with a table in it.  I have 
downloaded POI 3.8 Beta 4.

I am running the following code:

import org.apache.poi.xslf.usermodel.XMLSlideShow;
import org.apache.poi.xslf.usermodel.XSLFSlide;
import org.apache.poi.xslf.usermodel.XSLFTable;

public class XSLFTableTest {

    public static void main(String[] args) {
        XMLSlideShow ppt = new XMLSlideShow();
        XSLFSlide slide1 = ppt.createSlide();
        XSLFTable table = slide1.createTable();

}

and getting the following error:

Exception in thread "main" java.lang.IllegalStateException: CTTable element was 
not found
    at org.apache.poi.xslf.usermodel.XSLFTable.<init>(XSLFTable.java:63)
    at 
org.apache.poi.xslf.usermodel.XSLFDrawing.createTable(XSLFDrawing.java:105)
    at org.apache.poi.xslf.usermodel.XSLFSheet.createTable(XSLFSheet.java:153)
    at com.schrodinger.seurat.XSLFTableTest.main(XSLFTableTest.java:20)

I don't know if this is a configuration issue, a usage issue, or 
something else.  I have not been able to find anything on the Web that 
helps me track down the source of this error (although, the following 
thread seems like it might be related: 
http://apache-poi.1045710.n5.nabble.com/problem-with-ooxml-lite-and-tables-in-PPTX-td4541337.html).


I am running on a Mac and using Eclipse (if this information is useful).

Can anyone provide any help here?

Thanks,
Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to