f$Word: Text component
f$Word: Text component
Insert a text component. Any DocVariable fields are substituted by parameter values (updating of all field functions of DocVariable type). Any other field functions are only updated when the document is finished.
The substitution of the DocVariable fields normally occurs directly upon inserting the text component. In Epos, parameter values have to be defined before the function is called.
Please note:
After inserting the first text component and calling the initialization function f$Word:Document with the option Generate, parameters must be set explicitly!
Setting the parameters this way only applies to parameters belonging to a parameter group. All other parameter values can be set using ***, which has to occur before updating the fields, however.
Syntax: | Status = f$Word('Text component', 'Component name','') | ||
| Argument | Type | Meaning |
| Text component | String | Keyword |
| Component name | String | Name of the document to be inserted incl. path and file extension (.doc) |
| '' | String | '' |
Result: | Integer | 0: Command successfully executed -1: The specified document cannot be copied. | |
Example: | Status = f$Word('Text component', patch + '\\Position.doc','') | ||