# Updating Fields while Assembling Word Processing Documents ## Updating Fields ### The Recipe * Set up source document template path * Set up destination report path * Instantiate DocumentAssembler class * Set options, **DocumentAssemblyOptions.UPDATE\_FIELDS\_AND\_FORMULAS** * Generate report ### Download Template Get the template from here. * [Update field.docx](https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java/blob/master/Examples/GroupDocs.Assembly.Examples.Java/Data/Storage/Word%20Templates/Update%20field.docx?raw=true) ### The Code {{< gist GroupDocsGists e4689a8e711347bb81f1ed7600a1e923 >}}