Creates document from a Word template.
Syntax
CHGVAR |
VAR(&CMD) VALUE('WNEWFILE') |
CHGVAR |
VAR(&PARM1) VALUE('model') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |
Parameters
Parameters |
|
Parm1 |
Path and Name of the template, used to create new document. .dotx or .docx must be defined. |
Parm2 |
|
Example
CHGVAR |
VAR(&CMD) VALUE('WNEWFILE') |
CHGVAR |
VAR(&PARM1) VALUE('c:\temp\model.dotx') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |
See also
• WSAVE
• WSAVEAS