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

Free Support Forum - aspose.com

Range.Replace changes paragaph break to square using C#

Hi, when using ControlChar.ParagraphBreak in a string, it appears as a square character in the document using Range.Replace function.


You need to use special meta-characters if you need to work with breaks:

  • &p - paragraph break
  • &b - section break
  • &m - page break
  • &l - manual line break

Please use &p for paragraph break in Range.Replace method. We suggest you please read the following article.
Replace Text using Meta-Characters

If you still face problem, please ZIP and attach your input, output and expected output documents along with code example to reproduce your issue at our end. We will then investigate the issue and provide you more information on it.