Student question Re. Forms 6 to open word documents [message #371274] |
Tue, 26 September 2000 07:04 |
Jason
Messages: 32 Registered: February 1999
|
Member |
|
|
A component of a project that we are working on,requires that we bring up various word documents from forms 6. Any suggestions of an actual built in or program unit that would facilitate this would really be appreciated.
Thanks in advance
J :)
|
|
|
Re: Student question Re. Forms 6 to open word documents [message #371278 is a reply to message #371274] |
Wed, 27 September 2000 01:19 |
Rajendra
Messages: 23 Registered: September 2000
|
Junior Member |
|
|
I am not clear what you want to do but as i think about your query ,first make a package with handle to ole object like this-
PACKAGE word IS
hApp OLE2.OBJ_TYPE;
END;
now you can write the given code in your trigger event(when_button_pressed,key_next, etc.etc...).
DECLARE
a1 OLE2.LIST_TYPE;
BEGIN
word.hApp := OLE2.CREATE_OBJ('Word.Basic');
a1 := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(a1,:control.word_doc);
OLE2.INVOKE(Word.hApp,'fileopen',a1);
OLE2.Invoke(Word.hApp, 'AppShow');
OLE2.DESTROY_ARGLIST(a1);
END;
pls try this.
Rajendra
|
|
|