Adding Different Types of Content Controls into PowerPoint Presentations in C#

In MS Word, we can add different type of content controls like building block, text, rich text. And in program read them as StructureDocument tag and replace its value.

I want to perform same operation in powerpoint. Can you please guide how we can achieve same?

Thanks
Snehal

@snehalg,
Thank you for contacting support.

To understand your requirements, could you please show a simple example with a Word document and what exactly you are performing?

Template.docx (46.9 KB)

in this attached word template, I have defined different content controls. And through program I update values for them and generate final word document.

@snehalg,
The Template.docx file is corrupted. I was unable to open it with Microsoft Word.

Template.docx (50.4 KB)

@snehalg,
Could you please describe what exactly you can do with the Word document and would like Aspose.Slides to be able to do the same with PowerPoint documents?

Functionality.png (18.3 KB)
You can see in image we have defined content controls. And through program we populate values for the same like table,rich text, image.
Data gets placed at the location where content control is defined.

@snehalg,
Thank you for the explanation. I am working on the issue and will get back to you as soon as possible.

@snehalg,
Could you please share a PowerPoint presentation template file?

I dont have PPT template. As I am not sure how to define it for same properties as word template file. I need your help for that only.

@snehalg,
Unfortunately, I have not found a similar functionality in PowerPoint documents. You can try using your custom fields in text boxes like {{supplier_name}} or <<supplier_name>>, etc. Then you can replace such fields with values using Aspose.Slides for .NET. Will this way work for you?