0

I have used the following link for chart creation java create a chart in a powerpoint using APACHE POI which is working fine for apache poi 4.0.1 but I need to work it on apache poi 3.9. Same code has compilation issue on apache 3.9. I want to work it on 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);
}
  • You can't - those releases are [from 8 years apart!](http://poi.apache.org/changes.html#3.9). You need to upgrade your 3.9 version to something vaguely modern and supported – Gagravarr Apr 23 '19 at 09:38
  • Which version I suppose to use to resolve above compilation issue below 4.0.1 and if I need to do code change what code change is required. – sushil kumar Apr 23 '19 at 10:09
  • Latest stable version is Apache POI 4.1.0, upgrade everything to that – Gagravarr Apr 23 '19 at 12:03
  • My Actual application is on apache poi 3.9 and when I am upgrading it on higher version then there is compilation issue in thousands of classs. So I want to degrade my code at lower version. – sushil kumar Apr 23 '19 at 13:12
  • Look through the [Apache POI changelog](http://poi.apache.org/changes.html) and see all the bugs fixed and security issues solved since 3.9. Then upgrade your code! – Gagravarr Apr 23 '19 at 14:14

0 Answers0