Home » Developer & Programmer » Forms » HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5
HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #81552] Sun, 02 March 2003 04:20 Go to next message
Nancy
Messages: 19
Registered: March 2002
Junior Member
HELLO,

I WANT TO OPEN MS-WORD WHEN I PRESS ON A BUTTON CREATED IN FORMS 4.5. COULD ANYONE TELL ME THE SOLUTION FOR THE SAME?

REGARDS
NANCY
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #81572 is a reply to message #81552] Tue, 04 March 2003 01:51 Go to previous messageGo to next message
Vishnu Prajapati
Messages: 2
Registered: March 2003
Junior Member
You Can use OLE for your purpose.
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #81574 is a reply to message #81552] Tue, 04 March 2003 02:27 Go to previous messageGo to next message
sameer_am2002
Messages: 129
Registered: September 2002
Senior Member
Declare
app OLE2.OBJ_TYPE;
arg OLE2.LIST_TYPE;

BEGIN

app:=OLE2.CREATE_OBJ('Word.Basic');
OLE2.INVOKE(app, 'AppShow');

--creates a file

OLE2.INVOKE(app, 'FileNew');

--inserts text to the file
arg:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(arg, 'Text');
OLE2.INVOKE(app,'Insert', arg);
OLE2.DESTROY_ARGLIST(arg);

--saves the file to disk
arg:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(arg, 'J:IDBDVBmyfile.doc');
OLE2.INVOKE(app, 'FileSaveAs', arg);
OLE2.DESTROY_ARGLIST(arg);

OLE2.RELEASE_OBJ(app);
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #81579 is a reply to message #81572] Tue, 04 March 2003 02:59 Go to previous messageGo to next message
sameer_am2002
Messages: 129
Registered: September 2002
Senior Member
Wat serves ur purpose then.
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #81716 is a reply to message #81572] Fri, 14 March 2003 04:36 Go to previous messageGo to next message
Reza Rawasi
Messages: 1
Registered: March 2003
Junior Member
you can use this sysntax:
HOST('exefilename that is in the system32 folder of windows' 'filepath of your word filefilename');
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #84000 is a reply to message #81574] Fri, 16 January 2004 00:16 Go to previous messageGo to next message
Ahysanali M. Kadiwala
Messages: 4
Registered: January 2004
Junior Member
DECLARE
APPID PLS_INTEGER;
CONID PLS_INTEGER;
rown number;
coln number;
buffer varchar2(100);
BEGIN
rown:=1;
AppID := DDE.App_Begin('C:Program FilesMicrosoft OfficeOfficeWinword.exe C:Help.Doc', DDE.APP_MODE_MAXIMIZED);
DDE.APP_FOCUS(AppID);
ConID := DDE.Initiate('WINWORD','C:Help.Doc');
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #84001 is a reply to message #81572] Fri, 16 January 2004 00:17 Go to previous messageGo to next message
Ahysanali M. Kadiwala
Messages: 4
Registered: January 2004
Junior Member
DECLARE
APPID PLS_INTEGER;
CONID PLS_INTEGER;
rown number;
coln number;
buffer varchar2(100);
BEGIN
rown:=1;
AppID := DDE.App_Begin('C:Program FilesMicrosoft OfficeOfficeWinword.exe C:Help.Doc', DDE.APP_MODE_MAXIMIZED);
DDE.APP_FOCUS(AppID);
ConID := DDE.Initiate('WINWORD','C:Help.Doc');

Done...
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #84002 is a reply to message #81579] Fri, 16 January 2004 00:18 Go to previous messageGo to next message
Ahysanali M. Kadiwala
Messages: 4
Registered: January 2004
Junior Member
DECLARE
APPID PLS_INTEGER;
CONID PLS_INTEGER;
rown number;
coln number;
buffer varchar2(100);
BEGIN
rown:=1;
AppID := DDE.App_Begin('C:Program FilesMicrosoft OfficeOfficeWinword.exe C:Help.Doc', DDE.APP_MODE_MAXIMIZED);
DDE.APP_FOCUS(AppID);
ConID := DDE.Initiate('WINWORD','C:Help.Doc');

Finished ............
Re: HOW TO OPEN MS-WORD THROUGH DEVELOPER FORMS 4.5 [message #84003 is a reply to message #81716] Fri, 16 January 2004 00:20 Go to previous message
Ahysanali M. Kadiwala
Messages: 4
Registered: January 2004
Junior Member
DECLARE
APPID PLS_INTEGER;
CONID PLS_INTEGER;
rown number;
coln number;
buffer varchar2(100);
BEGIN
rown:=1;
AppID := DDE.App_Begin('C:Program FilesMicrosoft OfficeOfficeWinword.exe C:Help.Doc', DDE.APP_MODE_MAXIMIZED);
DDE.APP_FOCUS(AppID);
ConID := DDE.Initiate('WINWORD','C:Help.Doc');
End;

Done ....
Previous Topic: multi-select LOV
Next Topic: How to set a default keyboard layout in FORMS4.5??
Goto Forum:
  


Current Time: Fri Mar 29 00:22:36 CDT 2024