|
Tip>Designer>Word Functions |
|
|
Updating fields in Word |
|
|
Article #: |
0001 |
|
Contributor: |
Joanne Irvine-Smith |
|
GF version: |
3.05 |
|
Applies to: |
Fields in Microsoft Word |
|
Last updated: |
May 21, 2001 |
Description
Updates all the fields in an active Word document.
Explanation
Fields whose values contain variables or FillPoints do not automatically update after a fill. When the document is presented to a user, these fields seem to contain garbage values.
To force an update of the fields in an active Word document, insert the following function in a FillPoint at the end of a template:
WordApp.ActiveDocument.Fields.Update()
This is particularly useful to update a table of contents where the headings contain FillPoints.
|
NOTE |
|
Only in-line fields are updated by this function. The fields in all headers and footers remain unaffected. See Updating fields in headers and footers. |
Template Example
Click here to view an example of this function in a template.
|
SYSTEM PROJECT
Contents {TOC \h \z \t "Heading2,1"}
%[SystemName] Here follows a detailed description of the proposed system: %[SystemDescription]
System to be implemented on %[FormatDate(Date(), 'mmmm dd, yyyy')] This is to verify that the %[SystemName] system will be implemented on %[FormatDate(Date(), 'mmmm dd, yyyy')]. For a detailed description of the project plan, see the document attached.
System Requirements In order for the project to be implemented, the following criteria need to be met: %[ListOfCriteria]
%[~x=WordApp.ActiveDocument.Fields.Update()]
|
Click here to view a document generated from this template.
|
SYSTEM PROJECT
Contents
Net Works Here follows a detailed description of the proposed system: A network system.
System to be implemented on August 13, 2001 This is to verify that the Net Works system will be implemented on August 13, 2001. For a detailed description of the project plan, see the document attached.
System Requirements In order for the project to be implemented, the following criteria need to be met: Criterion 1 Criterion 2 Criterion 3
|