Usage of OLE2 in Forms 4.5 for Microsoft Word 97
From: <anitas_at_trisoft.be>
Date: Fri, 25 Sep 1998 13:26:43 GMT
Message-ID: <360b97af.27887159_at_145.4.3.97>
QUESTION: how can I delete a bookmark?
[Quoted] The command in VB is: ActiveDocument.Bookmarks("TEST").Delete
BEGIN
MyActiveDocument := OLE2.get_obj_property(MyApplication, 'ActiveDocument');
END; The command in VB is: ActiveDocument.SaveAs FileName:="Doc2.doc" ...
Date: Fri, 25 Sep 1998 13:26:43 GMT
Message-ID: <360b97af.27887159_at_145.4.3.97>
QUESTION: how can I delete a bookmark?
[Quoted] The command in VB is: ActiveDocument.Bookmarks("TEST").Delete
[Quoted] EXAMPLE: When I want to save the document I use: PROCEDURE saveAs(MyApplication in OLE2.obj_type, file_name in varchar2) IS
MyActiveDocument OLE2.obj_type; my_arglist OLE2.list_type;
BEGIN
MyActiveDocument := OLE2.get_obj_property(MyApplication, 'ActiveDocument');
my_arglist := OLE2.create_arglist;
OLE2.add_arg(my_arglist, file_name); OLE2.invoke(MyActiveDocument, 'SaveAs', my_arglist); OLE2.destroy_arglist(my_arglist); OLE2.release_obj(MyActiveDocument);
END; The command in VB is: ActiveDocument.SaveAs FileName:="Doc2.doc" ...
Tips can be sent to anitas_at_trisoft.be
Thanks,
Anita. Received on Fri Sep 25 1998 - 15:26:43 CEST