Hi , my project requires dynamically setting contents in a ppt file and outputting it to the client browser ---- it is an asp.net project , so the "office-com-library" is unadvisable to adopt in such senario while OpenXml , as a "cross-platform" standard interface , is a proper tool when handling this.
Now let me explain the program in details . Initially , a "pptx" file , as an original template , is provided ; some textFrame or image shapes are pre-defined in it , waiting for population of "real values" ; when user triggering an asp.net button , backend will process certain data-analyzation and work-out some expected datums ; then thread loads basic template "pptx" file , finding all target "shapes" , populating each of them with corresponding resolved value.
I refered the dll provided by MS "openXml" SDK , wrote some testing code and got the "PresentationPart" / "SlidePart" objects without problem. However , I got obstructed at this point: I don't know how to access these "shapes" objects enclosed in a "SlidePart" object. There seems no explicit Property representing the "textFrame" in a slide body. .. I search the internet but hard to find any "openXML" based solution or tutorial concerning about this .. So, I hope the forum can give me a pefect solution... Any expert may help me ? Thanks !