You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the attached document, we would like to replace the text #DocNo with some text using ReplaceText. This usually works but if a Shape is present, then somehow the wrong substring is replaced.
This is a regression that has been introduced in v1.3. The issue does not show up in earlier versions.
var path = @"original.docx";
var out_path = @"new.docx";
var document = DocX.Load(path);
document.ReplaceText("#DocNo", "FooBar 1234");
document.SaveAs(out_path);
In the attached document, we would like to replace the text
#DocNo
with some text usingReplaceText
. This usually works but if a Shape is present, then somehow the wrong substring is replaced.This is a regression that has been introduced in v1.3. The issue does not show up in earlier versions.
original.docx
The text was updated successfully, but these errors were encountered: