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

Free Support Forum - aspose.com

Template example (deprecated classes)

Hi – I’m trying to learn how I use Slides (.net) to search & replace text on each slide. I’m not using placeholders.

This example appears to show what I want to do but the Placeholder class has been deprecated. http://www.aspose.com/demos/.net-components/aspose.slides/csharp/general/create-from-template.aspx

Could you please modify this example so it can work w/ the latest release?

Thanks for your help!

Hi Jonathan,

Thanks for inquiring Aspose.Slides.

I have observed your requirement and like to share that Aspose.Slides allows you to access all text frames of slides and find the desired text there. After finding the desired text you can replace the text as per your convenience. Please follow the links below for your kind reference and share with us if there is any further help needed from my end.


Many Thanks,

Hi Mudassir –

Thanks for the quick response but as I noted in the original post, the examples are out-dated. In this case PresentationScanner has been deprecated (since 2011?). I changed the code to use SlideUtil.GetAllTextBoxes, however that did not find my “token” text: .

I was able to find some code that works with ppt files. But if you could up either create or modify an example to show how to do this with the current Aspose Slide component + pptx files that would be great.


Hi Jonathan,

Thanks for suggesting the correction. I have made correction in online documentation for your kind reference. Please visit this documentation link for your kind reference to extract presentation text frame text. The code will be working for PPTX. If there is any issue then please share the sample presentation along with slide number whereby your token resides but Aspose.Slides failed to read that. I will investigate that on my end to help you out.

Many Thanks,