Page 1 of 1

Dynamically increase contents on export.

PostPosted: Fri May 25, 2012 5:15 pm
by SmithaRSanthosh
Can you give me an example of how I can merge different PPT's into one.
I had a similar requirement in docx and had it resolved after follwoing your solution example .
My requirement is that I have a template and need to create a ppt from it. At run time I intend to substitute some of the values in the template with actual values.
Now for a particular business scenario , I need to create an output which will be repetitions of the input template.

Example my template has somethign like

Title
Name
Age

My output ppt should have multiples of this :
Title
Name
Age

Title
Name
Age

Title
Name
Age

where the number of repetitions are dynamic and decided at runtime only.

Can you provide me some solution to get this done?

Re: Dynamically increase contents on export.

PostPosted: Sat May 26, 2012 10:49 am
by jason
If there was something we could use in pptx which was like a docx content control (ie something in the slide where an xpath expression could be stored), then an xml binding approach could be used. We'll need to discuss the best way to represent the xpath expression.

(There is the possibility of embedding Word content on a slide, so you could potentially create a docx containing the values, and embed it).

The other issue is the fact that content does not automatically flow from one slide to another. What if there are too many lines to fit on the slide?

If it is one slide per set of values, the issue wouldn't arise.

Re: Dynamically increase contents on export.

PostPosted: Fri Jun 01, 2012 4:40 pm
by SmithaRSanthosh
As per our requirement we will always have the same set of contents per slide. There will not be a problem of contents not fitting in one slide. However we will have the number od such slides only at run time. Can you provide some sample code of how to implement this?

We will have one template as input. THe output will be a single pptx with the template being repeated "n" number of times.

Re: Dynamically increase contents on export.

PostPosted: Tue Jun 12, 2012 11:51 pm
by jason
jason wrote:If there was something we could use in pptx which was like a docx content control (ie something in the slide where an xpath expression could be stored), then an xml binding approach could be used. We'll need to discuss the best way to represent the xpath expression.


See CustomerData: http://msdn.microsoft.com/en-us/library ... =office.12).aspx and http://code.msdn.microsoft.com/office/P ... m-794ffe88