public void UpdateFieldsBeforeRendering() { //ExStart //ExFor:Document.UpdateFields //ExId:UpdateFieldsBeforeRendering //ExSummary:Shows how to update all fields before rendering a document. Document doc = new Document(MyDir + "Rendering.doc"); // This updates all fields in the document. doc.UpdateFields(); doc.Save(MyDir + "Rendering.UpdateFields Out.pdf"); //ExEnd }