HI,
I have a document with some if statments in and have following simple code to update the fields:
private void button1_Click(object sender, EventArgs e)
{
Aspose.Words.Document aspDoc = new Aspose.Words.Document("C:\\Document_before_update.docx");
aspDoc.UpdateFields();
Aspose.Words.SaveFormat docSaveFormat = Aspose.Words.SaveFormat.Docx;
docSaveFormat = Aspose.Words.SaveFormat.Docx;
aspDoc.Save("C:\\Document_after_update.docx", docSaveFormat);
}
But the result "Document_after_update.docx" does not look correct.
When I open the result in Word and update the fields manually, all is shown correctly.
Can you tell me why the if statements are not updated correctly with my code?
I am using the latest aspose version 16.11
Attached you can find my docx files. Thx for your help.
br