Hi all, I’m using Aspose.word version 18.9.0 and I am unable to replace line break. I tried with many characters but none of them work. Please help
Document doc = new Document("input.docx");
doc.Range.Replace("AAAA" + ControlChar.LineBreak, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.ParagraphBreak, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.SectionBreak, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.LineBreakChar, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.PageBreakChar, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.ParagraphBreakChar, "string.Empty", _options);
doc.Range.Replace("AAAA" + ControlChar.SectionBreakChar, "string.Empty", _options);
doc.Save("output.docx");