我已使用以下链接创建图表 java create a chart in a powerpoint using APACHE POI 这对于apache poi 4.0.1正常工作,但是我需要在apache poi 3.9上工作。相同的代码在apache 3.9上有编译问题。我想在apache poi 3.9上工作
MyXSLFChartShape(XSLFSlide slide, MyXSLFChart myXSLFChart) throws
Exception {
String rId = "rId" + (slide.getRelationParts().size()+1);
slide.addRelation(rId, XSLFRelation.CHART, myXSLFChart);
}
private class MyXSLFChart extends POIXMLDocumentPart {
private CTChartSpace chartSpace;
private MyXSLFChart(PackagePart part) throws Exception {
super(part);
}