We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Working With Find and Replace in PowerPoint

Hi,

I need a sample for FIND AND REPLACE Process in Power Point .


Thanks
Parkavi.M

6 Replies

DJ Devisri Jothi Syncfusion Team January 25, 2017 06:59 AM UTC

Hi Parkavi, 
Thank you for contacting Syncfusion support. 
We can replace the shape’s text in a template PowerPoint presentation using the following ways,  
# 1 - By looping through each text part of a paragraph in a shape  
For example, if the text is displayed in Microsoft PowerPoint as “Prepared For: <PreparedForName>, <PreparedForEmail>”, the textparts in a paragraph will be separated as follows,    
1.                    TextParts[0].Text -  “Prepared For:”  
2.                    TextParts[1].Text - “<”   
3.                    TextParts[2].Text - “PreparedForName”  
4.                    TextParts[3].Text - “>,<”  
5.                    TextParts[4].Text - “PreparedForEmail”  
6.                    TextParts[5.Text - “>”  
So, you cannot replace the entire text in a single textpart alone. The text can be replaced by iterating through the text part collection of a paragraph in a shape.  
# 2 - By using the shape’s title  
The shape’s title can be used to identify the textbox placeholders in a PowerPoint presentation. We have modified the provided template presentation by using separate textboxes for the text areas and have mentioned separate title for each textbox whose text has to be replaced with alternate text later. Please refer the screenshot below,  
 
We have created a sample to demonstrate how texts can be replaced by iterating through text part collection of a paragraph and by using shape’s title. You may download the sample from the following link,  
Please review the sample and let us know if it could satisfy your requirement.  
Regards,  
Devisri  



PA parkavi January 25, 2017 07:05 AM UTC

Thank you. I will look into it.


PA parkavi January 25, 2017 10:29 AM UTC

Hi,

I need to replace the characters by selection  in Power Point Document.

Expecting Find and Replace functionality as like MicroSoft Power Point.

Please refer the attached file.


Thanks
Parkavi.M

Attachment: FndReplace_f4b92f39.rar


AP Arun Prasad Matheshwaran Syncfusion Team January 26, 2017 08:59 AM UTC

Hi Parkavi, 

Thanks for your information. 

Please check the below sample where you can replace the old character with the new character in the slide. Here you can replace the characters by selection either by iterating the slide or by selecting the particular slide using its index. 

Sample: 

Please let us know if you need further clarifications regarding this. 

Thanks, 
Arun 



PA parkavi January 27, 2017 03:45 AM UTC

Thansk Arun.. It's really helpful.


DJ Devisri Jothi Syncfusion Team January 30, 2017 04:15 AM UTC

Hi Parkavi, 
We are glad that the provided information was helpful to you. Please get back to us if you need any further assistance. 
Regards, 
Devisri 


Loader.
Live Chat Icon For mobile
Up arrow icon