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

Free Support Forum - aspose.com

Cannot assign text that contains a paragraph break

I’m trying to replace ProtionEx text and get this message…

How can I replace the text?

foreach (PortionEx port in para.Portions)
{ port.Text = "New Text"


Hi Jon,

Please visit this documentation link to see how to set portion text. If the issue still exist then kindly share the sample project code along with the source presentation with us so that we may be able to reproduce the issue. I am afraid you have not shared the issue you are having while copying portion text.

Many Thanks,