Fields (texts)
Fields (texts)
Fields can be used - and nested - arbitrarily in Microsoft Word. Therefore a field can also be used for calculations or to display text alternatives:
Calculation of a unit price:
{ = { DOCVARIABLE wk.Price } / { DOCVARIABLE wk.Amount } } |
Determination of an address:
Dear { IF{ DOCVARIABLE Client.Address } = "Mr." "r" } { DOCVARIABLE Client.Address} ... |
Tip:
Word automatically adds the option "\* MergeFormat" upon the generation of new fields. In many cases of document generation this switch should not be used as it may change the format in an unintended way. In this case you can simply delete this option from the field function.