Home » Developer & Programmer » Forms » dde_app_failure when calling winword
icon5.gif  dde_app_failure when calling winword [message #148185] Wed, 23 November 2005 00:42 Go to next message
SchroederDirk
Messages: 5
Registered: August 2005
Location: Hamburg, Germany
Junior Member
Hi,

i have an Oracle Forms 6.0. application. The user can select a word document from a list; after pressing a button, the chosen word file is downloaded from the database (BLOB column) and saved in a local directory c:\aida\temp. After that, winword is opened, and the local word file, too.
This has worked pretty well in our test environment; however, it does not work in our customer's test environment.
Everything works until the execution of this statement:

appid := DDE.APP_BEGIN ('WINWORD.EXE', DDE.APP_MODE_MINIMIZED);

This is where the dde_app_failure exception is invoked.

So, the error obviously can't have anything to do with the chosen word file because the file is opened afterwards with the following commands

convid := DDE.initiate ('WINWORD','SYSTEM');
dde.execute (convid, '[FileOpen "'|| dateiname ||'"]',10000);
docid := dde.initiate ('winword', dateiname);
....
But here, it seems to be the mere opening of the Winword application which fails. The word window appears on the screen for about a half second (so obviously winword can be found), but then it looks as if it is closed again immediately, and the app_failure error occurs.

Does anybody have a good guess what might be the reason for this ? Maybe it is some pc configuration problem, or some DB settings which must be done before ?
Please help !

Thank you very much in advance.
kind regards

Dirk
Re: dde_app_failure when calling winword [message #150000 is a reply to message #148185] Mon, 05 December 2005 23:26 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Does the user have both the TMP and TEMP environment settings defined and do they have write access to the area if they are defined?

David
Previous Topic: Running Applications
Next Topic: LoadLibrary("imgscan.ocx") failed , why ?
Goto Forum:
  


Current Time: Fri Sep 20 03:57:18 CDT 2024