Problem when trying to open excel

Hi ,
This is my procedure
Procedure P_1_Open_Excel is
OBJ_HND OLE2.OBJ_TYPE;
AppID PLS_INTEGER;
ConvID PLS_INTEGER;
V_File_Name VarChar2(500) := 'Problem_In_Open_Excel';
Begin
     Obj_hnd := OLE2.Create_obj ('Excel.Application');
ConvID := DDE.INITIATE ('EXCEL','system');
DDE.EXECUTE (ConvID,'[OPEN("'||V_File_Name||'")]',50000);
DDE.EXECUTE (ConvID,'[Save]',50000);
DDE.Terminate(convid);
Exception
When Others Then
Begin
ConvID := DDE.INITIATE ('EXCEL','system');
DDE.EXECUTE (ConvID,'[OPEN("'||V_File_Name||'")]',50000);
DDE.EXECUTE (ConvID,'[Save]',50000);
End;
End;
It's working fine ,
But the process Excel.Exe is still in memory even if i close the excel.
When i trying to call excel again,the new process Excel.Exe is created ?
My Question is
How I can terminate the process Excel.exe before trying to open an excel again ?
Edited by: kingadmin on Apr 9, 2010 9:01 AM

loooooooooooooooooooooooooooool
Nice solution ,
You have any other solution using oracle statements ?

Similar Messages

  • "An error occurred sending the command to the application" When trying to open excel document from outlook 2007

    Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
    OS: Windows Server 2008 R2
    If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
    Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Another problem when trying to open iTunes8 for the first time

    I have just downloaded iTunes8 and after the installation received the message: - "iTunes has been installed successfully./"
    However, when trying to open it, I too have a problem and the message I get is: - "iTunes cannot run because some of its required files are missing. Please re-install iTunes."
    The previous version ran OK and I have de-installed it and re-installed it 3 times and each time I get the same message that it has been installed successfully but the same message sayind ome files are missing when I try to open it.
    I have checked the QTime is up to date and it is. Anyone else had this problem?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • Problem when trying to actualize excel spreadsheet - Excel Service - Secure Store Service

    Hello
    I encoutner  a strange problem in SharePoint 2013
    when trying  to actualize Datas into a spreadsheet Excel Web Service <- RMQ:  Both Service & Application are started
    The goal is to connect the Excel  Web  spreadsheet  to a  SSAS Cube.
    I use an account "proxy" SharePoint Secure Store Service because people who
    connect to sharepoint don't have acces to the olap Cube.
    However, when updating data in SharePoint, I encounter the following problem:
    An error has occurred while attempting to access the application ID AccesExcel
    from the Secure Store Service. Failed to update the following connections: XXXXXXX
    Information: For testing the SharePoint access account doesn't  have access to OLAP
    and Excel connection uses SSS account (which of course it access to olap cube free).
    Where do you think  the problem could coming  from ?  
    It seems to me that the SECURE STORE SERVICE service is "unstable".
    Sensitive to the memory RAM of the server ?
    Thank you very much for your help

    We export it from java servlet. But we used ReportExportFormat._MSExcel (which is constant value 2 defined in crystal report SDK) for excel export. As I looked at your code sample in JSP page, I changed the "Excel" value from 2  to 6 which is ReportExportFormat._recordToMSExcel as in the sample code
    We have this code snippet to set the export options.     (No change)
                 ExportOptions exportOptions = new ExportOptions();
                 exportOptions.setExportFormatType(ReportExportFormat.from_int(exportType.getId()));
                 exportOptions.setFormatOptions(formatOptions);
    And now CRExportType enum is defined as below with value changed from 2 to 6 for Excel.
        WORD("Word",1),
        EXCEL("Excel",6),   //_recordToMSExcel; _MSExcel=2 didn't work with error UnsupportedFormatException
        RTF("RTF", 3), //_RTF
        PDF("PDF", 5); //_PDF
    After the change, it did work. So I'm still not clear why _MSExcel didn't work and what's the difference between _MSExcel(2) and _recordToMSExcel (6). But I'm good for now and thanks for your help.

  • Problem when trying to open a page 2nd time in Work space

    Hi,
    When I login to workspace for the first time using IE explorer and try to open the Financial Reports it works fine. Afte logging off and logging in again in the same IE explorer if I try to open the reports it throws an error saying that it doesnt exist.
    Is it a bug?
    I am using EPM version 11.1.1 and IE explorer 6.
    have anyboady encountered with the same issue.
    Your suggestion will be highly appreciated.
    Thanks
    SS

    Still trying to use MUSE 2014, after launching the program I can open two pages from the Plan view, when attempting to open a third I got this message:
    I am running Windows 7 64 bit operating system with an Intel Core i5 CPU with 8gb of RAM.

  • After installing last Security Update 2014–002 i've had problems when trying to open some apps, as they close unespectedly. Boom, Audacity, Dropbox are some of these apps...

    Yesterday (april 22) I install the last Security Update 2014–002 from the Mac App Store. After rebooting the computer, I haven't been able to run some apps I use frequently, such as Boom Device, Dropbox, Google Drive, wich didn't show in the menu bar anymore and don't run even when clicking on their icons; or apps like Audacity (open source sound editor), All2mp3 (sound files converter to mp3); and other apps bought from the Mac App Store, as Funtastic Photos. This problem affects even applications as Word, Excel and Powerpoint... I think the problem has reached it's highest levels and I would like to know what can I do in order to reverse my iMac to a "normal" life... I should say that I haven't had any problems with any of the several Web Browsers I commonly use...

    I have the sam problem with Firefox and Word. Annoying, please help me. Word does not open at all(still Excel and Powerpoint do, Firefox get a lot of problems, and shuts down.

  • I am suddenly having a problem when trying to open a .tif file in Adobe bridge. The picture opens in firefox. It never did this before. How do I get my .tif and .jpg files to open in bridge?

    I open Photoshop cs5 version of bridge. Go to a folder that contains photos in .tif, ljpg, etc. file types. When I click on a .tif or .jpg file that I want to open in the raw window of bridge (which it has done for the past year) in opens instead in firefox. How do I stop this from happening????

    It sounds like a problem with Photoshop rather than with Firefox. I suggest posting it on their forum @ http://forums.adobe.com/community/photoshop

  • Itunes says it encounters a problem when trying to open. What do I do?

    Whenever I try to open itunes it says that it has encountered a problem and needs to close. It gives me the options to send an error report, don't send, and debug. Itunes was working fine earlier but it froze and now I can't open it again. My operating system is windows XP (Yes an old computer). I tried uninstalling and reinstalling itunes several times and double checked that all atachments of itunes were deleted before restarting my computer to reinstall itunes both times. What's the issue? Thanks in advance.

    Generate another of those error messages and click the "Click here" link in the error message box. What modname and modver are showing for the error? (Precise spelling please.)
    If the error is a BEX and thus doesn't show an modname or modver, let us know what P1 through P9 items are showing for you instead.

  • What seems to be the problem when trying to open mozilla? Or when uninstalling??

    I have a problem openning mozilla, every time I try to open this pops up "cun't load XPCOM" when I try uninstalling a message pops up saying "installer integrity check has failed.

    Try to download and install a fresh copy of Firefox from [https://www.mozilla.org/firefox/new/#download-fx here], to stop the missing XPCOM.dll warning.

  • Mail hangs when trying to open excel file

    Hi there,
    I've installed goodreader, Docs to Go and numbers on my ipad. Unfortunately, mail hangs when i try to open a spreadsheet. The option to use either one of the apps pops up, however, i'm not able to select either numbers or Docs to Go to open the file.
    I've restarted the ipad to no avail. Does anyone have any ideas about this?
    Thanks
    Message was edited by: Sininakl

    Running disk repair a second time seems to have fixed the issue.

  • Hello, I'm having problems when trying to open videos in photoshop cc, not open and a window appears saying that Photoshop is not compatible with the earlier version of windows.Alguem could help me please? my system is 32 bit and my photoshop is 32 bits.

    anybody here?

    Hi,
    The video features for Windows 32 bit systems are no longer supported starting with Photoshop CC (14.0).
    Sorry,
    steve

  • Error code "-21468272​84" when trying to open an Excel workbook using ActiveX

    Hi all,
    i have a problem using ActiveX to open excel files. I get error code "-2146827284" (unknown error) when trying to open a workbook. This problem occurs on only one machine i work with, on the others it works fine. All machines have the same setup, Excel97 and Excel2007 installed on them.
    Any ideas??
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    ExcelToolkit open.PNG ‏53 KB
    ExcelToolkit open FP.PNG ‏32 KB

    andyforpresident wrote:
    For sure the file is there, the _application object gets created without an error.
    Creation of the application object has nothing to do with opening the workbook, which is what is generating the error. If you are getting an error with opening the workbook then you either have the wrong path, a permissions issue, a network issue, or the file is already open.

  • I get the message 'itunes has encountered a problem and needs to close' when trying to open itunes 11.1.1.11. I have had to uninstall itunes so that I could load this version, the PC says it is correctly loaded, but I now cannot open itunes. Advice?

    I get the message 'itunes has encountered a problem and needs to close' when trying to open itunes 11.1.1.11. I had to uninstall itunes so that I could load this version as the update to version 11 kept failing. The PC says 11.1.1.11 is correctly loaded, but I now cannot open itunes. Any advice on how to get itunes working again?

    Hello there, ytnoj.
    Uninstalling and reinstalling iTunes can be a tricky endeavor and must be done in a very specific way. The following Knowledge Base article provides the step-by-step of the process:
    Removing and Reinstalling iTunes and other software components for Windows XP
    https://support.apple.com/kb/HT1925
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Time out when trying to open Word/Excel document from portal

    Several of our users have been timing out when trying to open/download documents stored in our portal.
    The error message is "Download failed. Connection to server was reset."
    Is there some obvious setting that I am missing here?
    It happens with things as small as 200K - Word and Excel documents.
    thanks!!

    Hi Gary Jiang,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing issues about
    apps for Office.
    Based on the description, it seems that you got an issue when you deploy the code sample. If I understood clearly, I suggest that you contact the author of the code sample from the "Q and A" tab.
    Also if you have the question about WOPI, I suggest that you get more effective response from
    Office
    Protocols forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a

    I am using Lightroom 5 and am hapy about it, but recently I hav encountered a problem when trying to edit an image in another program, i.e. Elements. I used the clone tool, saved the result and went back to Lightroom to open the image there. I did find a second copy, but this is identic with the one I already had in Lightroom, and I can see noe result of the clone process.

    At the moment I would say it is uncertain whether Acrobat is completely ignoring the change, or whether the changes you are making aren't affecting the ink density. I have a suggestion for a test you could make to see which is the case.
    When editing in Photoshop just add a box or mark on the image, for your tests.
    - If this box does not appear in Acrobat, you know Acrobat is not seeing the edit
    - If this box does appear in Acrobat, you know the problem is that your tool for changing ink densities is not taking effect.

Maybe you are looking for

  • Deleting Pictures in Edit Mode

    When I am in Full Screen Edit Mode I don't seem to be able to delete an open picture simply by pressing the DEL button. The combination Command-Option-Delete works but not the Delete alone. A friend of mine can delete an open picture with just DEL bu

  • What is the parallel command to select in Java?

    I mean if 2 or more process try to connect me how can I accept them all?

  • Custom pluggable idm with custom login module

    Hello All. I've developed a custom implementation of the pluggable identity management framework as explained in chapter 13 of the book "Oracle® Containers for J2EE Security Guide10g (10.1.3.1.0)". I have OAS 10.1.3.1.0. Everything works fine except

  • HT201250 Time Machine taking forever...???

    I am backing up 230GB from my local drive to a new external drive using Time Machine.  I am now 24hrs into the process and only 25GB along...should it take this long?

  • Need help in activation NI Labwindows

    Hi, I have serial # of the NI Labwindows V8.5.1 product.When I tried to activate the product using serial #, I got this message - "The Activation code "some 20 digit code" returned from National Instruments could not be applied to your Product. This