Inserts an OLE object into the active Word document.
Syntax
CHGVAR |
VAR(&CMD) VALUE('WINSERTOBJ') |
CHGVAR |
VAR(&PARM1)
VALUE(' ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |
Parameters
Parameters |
|
Parm1 |
File : Full path to file to insert.
Bookmark : (Optional) Bookmark name where new document will be inserted. Preset Word bookmarks can be used.
Link : True/False, default is false. If Link is true, it is a link to the object that is inserted. Changes made to the object will automatically be reflected on the documents with which it is linked. |
Example
Insert PowerPoint slides into a Word document:
LNCCMD CMD(WINSERTOBJ)
PARM1('File="C:\temp\stored_proc.ppt"')