poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashley Westwell <ashley.westw...@logicbox.ca>
Subject Update ChartBasedDocument in PackagePart
Date Fri, 09 Mar 2012 15:35:35 GMT
Hey All

Below is a code snippet I am able to update the ChartSpaceDocument object
as required. My question is what is the correct way to insert the chart
back into the packagePart and update the OPCPackage?

Thanks

OPCPackage ppt = OPCPackage.open("/_excel/Presentation1.pptx");
ArrayList<PackagePart> packageParts = ppt.getParts();
for(PackagePart packagePart : packageParts) {

if(packagePart.getContentType().equals("application/vnd.openxmlformats-off
icedocument.drawingml.chart+xml")) {
        ChartSpaceDocument chartSpaceDocument =
ChartSpaceDocument.Factory.parse(packagePart.getInputStream());
...

    }
}
-----Original Message-----
From: mouss4rs [mailto:oukna.mustapha@gmail.com]
Sent: Friday, March 09, 2012 7:51 AM
To: user@poi.apache.org
Subject: Re: to obtain value of cellx.setCellFormula("SUM(I3:I20)");

I don't obtain value of cellx.setCellFormula("SUM(I3:I20)"); after
changes.

--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/to-obtain-value-of-cellx-setCellFo
rmula-SUM-I3-I20-tp5546613p5550481.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional
commands, e-mail: user-help@poi.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message