I originally was looking at this answer to create charts in Powerpoint and had an additional question as below:
Thanks for the above. Your example standalone works fine for me and I see the generated PPTX file ok. But when I try integrate it into my proper application I see the below exception at runtime.
Schemas (.xsb) for CTTable can't be loaded - usually this happens when OSGI loading is used and the thread context classloader has no reference to the xmlbeans classes - use POIXMLTypeLoader.setClassLoader() to set the loader, e.g. with CTTable.class.getClassLoader()*
When I googled I found mention of this issue: It shows in the code this comment:
// Pesky XmlBeans bug - see Bugzilla #49934
// it never happens when using the full ooxml-schemas jar but may happen with the abridged poi-ooxml-schemas
Did you have any similiar issues to this? Can you tell me what versions of "poi-ooxml" (I'm using v3.17) and "poi" (I'm using v3.17) your using, or indeed share your pom.xml would be great.
If anyone could give any guidance, that would be great.
Thanks - Ro