PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > WINSERTOBJ command
WINSERTOBJ command

Inserts an OLE object into the active Word document.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('WINSERTOBJ')

CHGVAR

VAR(&PARM1) VALUE('
File="Object path";
[;Bookmark="Bookmark"]
[;Link=True/False]

')

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"')