Description
- Aspose.Words is incorrect when find a text if there is a picture in the middle of the text.
- I know Aspose treat as a plain text when use
doc.Range
, but it not same as MS Word.
- We should not treat as a whole text when some images in these text.
Code
void Main()
{
var doc = new Aspose.Words.Document(@"C:\Users\XCL\Desktop\test.docx");
doc.Range.Replace("5678", "AB");
doc.Save(@"C:\Users\XCL\Desktop\target.docx");
}
Files
test.docx (17.7 KB)
target.docx (15.1 KB)
MS Word Find Preview
@xucongli1989 Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24701. We will keep you ported and let you know once it is resolved or we have more information for you.
Hi, I want to know, why this issue’s status was closed? I think it’s a serious problem, because it will let Range.Replace
become unbelievable. Thanks a lot!
@xucongli1989 The issue is closed because is is already resolved. The fix will be included into the next 23.2 version of Aspose.Words. We will be sure to let you know once it is released.
The issues you have found earlier (filed as WORDSNET-24701) have been fixed in this Aspose.Words for .NET 23.2 update also available on NuGet.