Opens a WORD document.
The WORDOPEN command must have been used before.
Syntax
CHGVAR |
VAR(&CMD) VALUE('WOPENFILE') |
CHGVAR |
VAR(&PARM1) VALUE('file') |
CHGVAR |
VAR(&PARM2) VALUE(' [;*ONLY] [;*DOCPWD=xxx] [;*WRTPWD=yyy] ') |
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 file to open.
|
Parm2 |
Specifies *ONLY to open file in read only mode. Specifies *DOCPWD to indicate document opening password. Specifies *WRTPWD to indicate document modifying password.
|
Example
CHGVAR VAR(&CMD)VALUE('WOPENFILE')
CHGVAR VAR(&PARM1) + VALUE('c:\temp\file.docx')
CHGVAR VAR(&PARM2)VALUE('*ONLY')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT +
&PARM1 &PARM2 &RESULT)
MONMSG MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR))
See also
• WSAVEAS