We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PowerPoint/Excel markup

Is there any possibility to use any kind markup in content creation? What I am trying to achieve is to have same data but different kinds of output layouts by only using different template or so.

Hi Kalle,

Thanks for your interest in Aspose.Slides.

I have observed the requirements shared by you and have not been able to completely understand your requirements. Can you please share the detailed requirements along with snapshot and sample presentation. I will investigate your requirements to help you further in this regard.

Many Thanks,

I am yet unable to provide any sample but I can try to describe things better.


So there would be single data source (database, xml, pojo or something) and that is passed to PowerPoint creator. PowerPoint is then built using template that contains references to the data with markup e.g. ${person.name} (most generic). Template could be PowerPoint file, xml description or similar. So the output can be changed by using different template. And the question is is that possible?

Hi Kalle,

I have observed your further requirements and like to share that there is no such option available in Aspose.Slides to load the shapes/fields of presentation slides from some markups stored in some XML file. You need to devise your own mapping and carry out your own implementation in this regard in the form of a parser that will parse the XML file and populate the data in respective slide shapes. You can mark the shapes using Alternative Text properties and can perform the shape tagging that will help you in performing the mapping.

Please share, if I may help you further in this regard.

Many Thanks,

Hi Kalle,

Please check http://www.aspose.com/docs/display/cellsnet/Smart+Markers for Aspose.Cells. You can use DataSet.ReadXml to load XML data to a DataSet and then use this code to populate templates.

Best Regards,

Thanks. That markup seems to be only for Excel. Is there anything similar for PowerPoint?


Regards,
Kalle

Hi Kalle,

I regret to share that there is no such feature available in Aspose.Slides. However there is Shape.Tags property that you may consider using on your end. But it may not fully serve the purpose on your end and you may have to write your own mechanism to achieve the goal on your end.

Many Thanks,