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

Free Support Forum - aspose.com

Bug: Field setResult on tracked changes has weird result

If a document has a fillin field, and that field has a partial redline in it, then changing its entire value produces a partial redline.


  1. Use attached document. test_word_document_with_redline_in_field.docx.zip (11.6 KB) Note that its value is “Your Contract”, where “Your” is a tracked change for inserted text. There is also a tracked change for removed text “My”
  2. Using Aspose Words for Java, find the first field (prompt text is “Field 1”)
  3. Use setResult to change value to e.g. “New Value”
  4. Open document

As track changes is disabled while using setResult, the file should now have a value of “New Value” with no tracked changes

The result is “New Value”, where “New” is a tracked change for inserted text. It’s like the tracked change for “Your” was transferred to the word “New”?


Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16677. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,

We’re encountering this bug in the Java library, but the bug you’ve logged seems to be for the .Net version.



Thanks for your inquiry. Please note that the latest version of Aspose.Words for Java is completely auto-ported from .NET, i.e. we do not write code for Aspose.Words for Java; it is generated out automatically from C# code of Aspose.Words for .NET. You will get the fix in Aspose.Words for Java.

Fantastic - thank you!

The issues you have found earlier (filed as WORDSNET-16677) have been fixed in this Aspose.Words for .NET 20.6 update and this Aspose.Words for Java 20.6 update.