Forms 4.5 : How can I use OLE Automation with ?
From: JF Guichon <chogui_at_mail.starnet.unisoft.fr>
Date: 1997/02/12
Message-ID: <33017AA5.2F4B_at_mail.starnet.unisoft.fr>#1/1
END; That works fine, but it 's very simple. I'd like to know how I could use more complex OLE commande with parameters, for
instance, open a winword document (where the parameter is '.name = "c:\file" ' ).
I have tried like that but it does not work at all :
END; Where can I find a book about OLE with Form 4.5 ?
Date: 1997/02/12
Message-ID: <33017AA5.2F4B_at_mail.starnet.unisoft.fr>#1/1
Hi,
With Oracle Forms 4.5, I use an OLE Automation server (Word basic) :
DECLARE
obj OLE2.OBJ_TYPE;
my_arglist OLE2.LIST_TYPE;
BEGIN
my_arglist := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG( my_arglist, 'bonjour' );
obj := OLE2.CREATE_OBJ ('Word.Basic');
OLE2.INVOKE (obj, 'Insert', my_arglist ); OLE2.RELEASE_OBJ( obj ); OLE2.DESTROY_ARGLIST( my_arglist );
END; That works fine, but it 's very simple. I'd like to know how I could use more complex OLE commande with parameters, for
instance, open a winword document (where the parameter is '.name = "c:\file" ' ).
I have tried like that but it does not work at all :
DECLARE
obj OLE2.OBJ_TYPE;
my_arglist OLE2.LIST_TYPE;
BEGIN
my_arglist := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG( my_arglist, '.name = ' );
OLE2.ADD_ARG( my_arglist, 'c:\file.doc' );
obj := OLE2.CREATE_OBJ ('Word.Basic');
OLE2.INVOKE (obj, 'FileOpen', my_arglist ); OLE2.RELEASE_OBJ( obj ); OLE2.DESTROY_ARGLIST( my_arglist );
END; Where can I find a book about OLE with Form 4.5 ?
Thanks for help ! (please reply by mail) Received on Wed Feb 12 1997 - 00:00:00 CET
