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

Free Support Forum - aspose.com

ABS() Formula field not updated correctly

Hi Aspose team,

We’ve found an issue with one of the fields in our document:
Syntax_template.zip (9.2 KB)
The problem is caused by comma and fields returns SyntaxError in word. However, updating the field in Word gives correct result. It is not working when done programatically, please see the example code:

        var source = new Document(@"Input//Syntax_template.dotx");
        source.UpdateFields();
        foreach (var field in source.Range.Fields.Where(f => f.Type == FieldType.FieldFormula))
        {
            field.Update();
        }

        source.Save("Output//Results.docx");

Please let me know if you need any more details.

Thanks,
Mateusz

@acturisaspose

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-19391. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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