office365 - Office task pane app: how to get the whole document in an OOXml string? -


i'm developing office task pane app needs access whole document. know there api getfileasync() https://msdn.microsoft.com/en-us/library/office/jj220084.aspx

office.context.document.getfileasync(filetype [, options], callback); 

however,the filetype can 3 values: compressed, pdf, text.

compressed

returns entire document (.pptx or .docx) in office open xml (ooxml) format byte array.

pdf

returns entire document in pdf format byte array.

text

returns text of document string. (word only)

when compressed, returned value byte array. how can ooxml string?

or there api select content in document can use getselecteddataasync() api?

this little late.

i've been working task pane apps lately and, turns out, ooxml natively compressed (unless i'm grossly mistaken).

my best advice figure out encoding string encoded at, , decode encoding type. i'm willing bet it's utf-8.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -