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

Free Support Forum - aspose.com

doc.Range.Replace does not work

Hello

Why does the following statement not work?

doc.Range.Replace("%Replacement%",“Hello”,true,true);

Its because of the Percentage-Sign… but how to escape correctly?

Thx, Greetings from Switzerland

Leo


This message was posted using Page2Forum from Replace Method - Aspose.Words for .NET and Java

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Please try using the following code:

doc.Range.Replace("%Replacement%", "Hello", true, false);

Hope this helps.

Best regards.