Hi, To all,
I have a question how to Replace Cr as CrLf.
There are many Word documents, and each doc has many special chars such as soft return, i.e., NewLine char. I use the below codes to replace all the Cr as CrLf，but it doesn’t work.
Dim Doc As Aspose.Words.Document = New Aspose.Words.Document(sFile)
Doc.Document.Range.Replace(Aspose.Words.ControlChar.Cr, Aspose.Words.ControlChar.CrLf, False, False)
Doc.Document.Range.Replace(vbNewLine, vbCrLf, False, False)
Dim builder As New Aspose.Words.DocumentBuilder(Doc)
On Error Resume Next
However,there is still too many vbNewLine chars in the main document, that is to say, the replacement operation doesn’t work.
How to implement this replacement operation so that all the Cr chars in the main body document can be replaced with CrLf?
Thanks in advance!