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

Free Support Forum - aspose.com

Forms Question

Hi,
We have a word document that has some of it's form fields disappear after calling UpdateFields. Would like to confirm if this is expected behavior, or a bug? Attached is a word doc and some code to reproduce the situation.

Thanks,
Greg

protected static void Test5683()
{
try
{
var doc = new Document("5683.docx");
//doc.UpdateFields();
doc.Save(@"C:\out.docx");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
throw;
}
}

Hi Greg,


Thanks for your inquiry. Yes, the behavior which you are facing is expected. Please note that Aspose.Words mimics the same behavior as MS Word does. If you open your document in MS Word and update the fields, you will get the same output. Press Ctrl + A and then F9 to update all fields in a document.

Hope this answers your query. Please let us know if you have any more queries.

Thanks for the fast reply, very helpful!