On Tue, 7 Dec 2010, Aram Mirzadeh wrote:
On 12/7/2010 12:47 AM, Nick Burch wrote:
On Sun, 5 Dec 2010, Aram Mirzadeh wrote:
I'm trying to update the values for the excel chart. I can read the
docx, get the embeded object, and read and modify the cells that I need.
My question is how do you save the embedded excel file?
You'll get the ooxml document part for the embedded file, from which you
get the input stream to read it. You should be able to get an output
stream onto the same part too, to save the changed version.
I was with you until the "output stream onto the same part". If it's an
inputstream for the file, how do you write it back out as the same part?
The PackagePart is read/write. You can get both an inputstream and an
outputstream from it
http://poi.apache.org/apidocs/org/apache/poi/openxml4j/opc/PackagePart.html
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]