DDE Package. How to close a excel file without saving changes and without messages [message #431732] |
Thu, 19 November 2009 05:38 |
serfraile
Messages: 18 Registered: November 2009
|
Junior Member |
|
|
Hello everybody;
I need to rescue some valors from Excel, and then close the excel file without saving changes and without messages.
I am using THe DDE package and when using
DDE.EXECUTE(convid, '[Save()]', 10000);
there is no problem, but the changes are saved.
I have tried '[Exit()]' and '[Close()]' but always have error message ORA-106555. Is there any way of donig this without errors?
Thanks in advance
Sergio.
|
|
|
|
|
|
|
|
|
Re: DDE Package. How to close a excel file without saving changes and without messages [message #432266 is a reply to message #432261] |
Mon, 23 November 2009 05:38 |
serfraile
Messages: 18 Registered: November 2009
|
Junior Member |
|
|
After closing Excel I have these 3 statements you mentioned, but I think that the exception is in
DDE.EXECUTE(convid, '[Close(false)]', 10000);
DDE.EXECUTE(convid, '[Quit]', 10000);
If i wanted to save the changes and put
DDE.EXECUTE(convid, '[Save]', 10000);
the exception doesn't raise.
I'm trying to change timeout parameter to see if works, but it seems to be a bug.
I'll keep you informed asap. Please, don't forget me if you know something.
Thanks and best regards.
Sergio.
|
|
|
|
|
Re: DDE Package. How to close a excel file without saving changes and without messages [message #467241 is a reply to message #432740] |
Fri, 23 July 2010 00:13 |
|
azamkhan
Messages: 557 Registered: August 2005
|
Senior Member |
|
|
hi all,
David I am facing a similar problem.
I am importing data from excel into Oracle Develper 6i Forms using DDE package. The code is working fine. The only problem is that after importing the data from excel I close the file and excel with following codes:
DDE.TERMINATE(docid);
DDE.TERMINATE(convid);
DDE.APP_END(appid);
First 2 statments should close the excel file and the excel application, right. I had run this code on some Pcs(5) having Windows Xp and Oracle Developer Forms 6i, whats happening is that only 1 of the Pc is closing the excel file and excel application, but mostly it is not working without giving any error or exception. Excel is running file on all Pcs.
Can you help me why this is happening. Why the DDE package code for exiting Excel is not working in the same manner as it should?
Azam
[Updated on: Fri, 23 July 2010 00:18] Report message to a moderator
|
|
|
|