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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Working With Find and Replace in PowerPoint

Thread ID:

Created:

Updated:

Platform:

Replies:

128456 Jan 24,2017 04:59 AM Jan 29,2017 11:15 PM Windows Forms 6
loading
Tags: Presentation
parkavi
Asked On January 24, 2017 04:59 AM

Hi,

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


Thanks
Parkavi.M

Devisri Jothi [Syncfusion]
Replied On January 25, 2017 01:59 AM

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  


parkavi
Replied On January 25, 2017 02:05 AM

Thank you. I will look into it.

parkavi
Replied On January 25, 2017 05:29 AM

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

Arun Prasad Matheshwaran [Syncfusion]
Replied On January 26, 2017 03:59 AM

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 


parkavi
Replied On January 26, 2017 10:45 PM

Thansk Arun.. It's really helpful.

Devisri Jothi [Syncfusion]
Replied On January 29, 2017 11:15 PM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;