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

Free Support Forum - aspose.com

Replacing text in a slide

Hi I am just doing a trial of Aspose.Slides.Pptx at my work place and had a quick question. I want to replace some text on a slide that I’m using as a template.

((AutoShapeEx)shp).TextFrame.Text = "Some text"
works fine as demoed in the documents section.

but say I want to replace some text in a paragraph, change “This” to “That” , i tried
((AutoShapeEx)shp).TextFrame.Text = ((AutoShapeEx)shp).TextFrame.Text.Replace(“This”, “That”);

but with any text over 5 characters I get this printed out instead, "… text has been truncated due to evaluation version limitation."

Any help appreciated

Hi Drew,

Thanks for your growing interest in Aspose.Slides.

I like to share that you can acquire the temporary 30 days license for your evaluation. Please follow the guidelines shared here for your convenience to obtain trial license. I also like to add that each text frame has collection of paragraphs and every paragraph has collection to portions inside it. I would also suggest you to please try using the sample codes shared over this thread link for further enlightening of your knowledge. Please also visit this documentation link for your convenience.

Please share if I may help you further in this regard.

Many Thanks,