p$TDV:SMPAPI:EtTxExit_s
p$TDV:SMPAPI:EtTxExit_s
Finish text generation.
All field functions are updated, the existing table of contents may be regenerated, and so on. If a Word macro has been set for the final editing phase it will now be executed. Afterwards, the document is saved but Word remains open with the generated file.
Using this function a macro can be executed and/or an option can be transferred.
In case a macro closes the currently active document or Word, attention should be paid to saving this macro normally in the file Normal.dot. Also, attention should be paid that in such a case the third keyword is not used.
Syntax: | p$TDV:SMPAPI:EtTxExit_s(Macro,Option ) | ||
| Argument | Type | Meaning |
| Macro | String | Macro to be carried out or empty string ('') If the name 'print output' is used the document is printed out and Word is closed. |
| Option | String | 'End' - Word is closed 'Close' - the currently active document is closed |
Result: | - |
| |
Example: | p$TDV:SMPAPI:EtTxExit('','End') | ||