Fill presentation with texts

Hi!

I would like to replace some texts in PPT file with actual values, i.e. "customer_name" should be replaced by "Syncfusion".
I implemented quickly some simple console application that is doing exactly so, but I used standard text boxes marked with some prefix string (in this case "DYNAMIC:") and I have to scan through all the shapes in presentation.
Is it possible in PowerPoint to do it in more elegant way. Like using some special kind of object (like a form fields) with particular IDs? Any suggestion will be highly appreciated. 

I found such a post:
https://www.syncfusion.com/forums/128456/working-with-find-and-replace-in-powerpoint
But I cannot find the field "Title" in Format Shape that was used in this example (I'm using office 365)

I attached the console application mentioned before.

Kind regards,
Lukasz

Attachment: SeachAndReplace_8bc0e0b1.7z

1 Reply 1 reply marked as answer

MR Manikandan Ravichandran Syncfusion Team June 4, 2020 12:38 PM UTC

Hi Lukasz,

Thank you contacting Syncfusion support.

Yes, it can be achievable using the
shape.Description property in the Essential Presentation library. Please refer the below link to know about set the description for the shape.
https://support.microsoft.com/en-us/office/add-alternative-text-to-a-shape-picture-chart-smartart-graphic-or-other-object-44989b2a-903c-4d9a-b742-6a75b451c669?ui=en-us&rs=en-us&ad=us

You can set desired text in the description of the shape object and based on the description property of the Shape object, you can change the text in the shape.

Based on this we have modified the sample and it can be downloaded from the following link.
https://www.syncfusion.com/downloads/support/forum/154868/ze/SeachAndReplace1633611364

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran
 


Marked as answer
Loader.
Up arrow icon