on 12-06-2017 1:33 PM
Hi Experts,
I have a Web Dynpro View with various content (Textfields, Tables, Interactive Forms) and the requirement to export the whole content from that View in a automatic generated Powerpoint with several slides.
As first I tried it with OLE. Here its possible to create the whole ppt in abap. But OLE only works in Reports and not in WebDynpros.
Than I found How to - Add Custom XML Parts to PowerPoint. As result I get a emtpy powerpoint with the predefined template( that I had uploaded in the Mime-Repository). When I open the pptx with Winrar there is a ppt folder with the customXML data. How can implement the data in the powerpoint slides?
I hope somebody can help me or knows another way to create and fill up a powerpoint out of a WebDynpro.
Greetings
Thimo
I solved it that way:
As first, prepare the powerpoint file. Set Placeholders with dummy keywords (or dummy Images) on the slides and save the file as a XML Presentation. Import the Powerpoint Template in the Mime Respository.
Convert the file in a string, search for the keywords and replace them with the Data from the Web Dynpro.
Than convert it back in a xstring.
Use the Method attach_file_to_response from the class cl_wd_runtime_services to save the modified Powerpoint as a xml.
Thats my Rookie solution...if someone has another Idea or solution feel free to share it 🙂
Greetz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Custom XML parts is essentially the same idea of placeholder replacement : insert tags (element names of an XML) into the document, and in ABAP you provide the XML with those elements and values (customxmlpart->feed_data). There are many ABAP blog posts about that, whatever it is for Word, Excel or Powerpoint.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.