Opening Excel Files from DB (blob column)

My project has implemented a WEBUTIL solution to attach files into the database, view the files stored in the database (in a BLOB column), and remove the files stored in the database.
Everything has been running smoothly. We are in final testing and have found a couple of interesting scenarios ...
When a user tries to view an Microsoft Excel 2007 file from our application, the Excel file displays properly (as long as Microsoft Excel isn't already open - outside of our Oracle application). Once the Excel file is viewed, the system will not allow the user back to our application until after the Excel file is closed (we use the start /wait myExcelFile.xls ... command). This works perfectly for us.
The two scenarios we encounter occur when
1.) The user has Microsoft Excel open outside of our application and tries to open an Excel file from within our application, or
2.) The user has the file already open (either from within our application or outside of our application) and then tries to open the file from within our application.
Let me explain a little further because the above two scenarios are interrelated.
When a user has Microsoft Excel open (outside of our application), and then clicks the button to open the Excel file, the system will open the file as another window (within Excel). The system will allow the user to navigate back to our application (where as, if Excel is not open outside of our application, the system will not allow the user to navigate back to our application). Once the user navigates back to our application (while the file is still open), the user can click the button to view the file again. At this point, the user is displayed a WUT-105 error message (I assume b/c the system is trying to open a file that is already open).
I assume the two solutions are the following:
a.) Do not allow a user to open a file that is already open (not sure how to check this from within Forms ?)
b.) Do not allow a user to open an Excel file when another EXCEL process is already running (this will avoid allowing the user to naviagate back to our application)
I don't know if there is a better solution.
Do you experts have any recommendations?
We are using Oracle Application Server 10g R2 (10.1.2.0.2), Oracle Database 10g R2 (10.2), and Oracle Developer 10g (10.1.2.0.2)
I hope this all makes sense.
Thanks,
Mike
Edited by: user639843 on Oct 20, 2008 2:15 PM
Edited by: user639843 on Oct 20, 2008 2:20 PM

Thank you, Thank you, Thank you!!!!
I believe that will work (adding a sequence number to the end of the filename)!
We do not allow a user to update the file, only view. If a user wants to make a change, they need to remove the existing file (from the database), create a new file (outside of our application), and attach the file in our application (into the database). All updates occur outside of our application - we are not a document authoring system, just a document storage system.
Once again, many thanks on the solution!
Mike

Similar Messages

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • Can't open Excel files from Sharepoint 2013

    I am having an issue with opening Excel files from SharePoint 2013. If I click on an excel file it comes up with the error below.
    If I click Try again I get the message below also:
    If I try to open Word or PDF files they open correctly in the appropriate client and I have the option of checking them out and editing them. Any ideas why this would only be happening to Excel files?
    Thanks,
    Shaun

    Hi Shaun,
    I understand that the Excel files cannot be opened from SharePoint in Microsoft Excel.
    Can these files be viewed in the browser?
    I recommend to download a copy of the files with issue and then open them in Excel to see if the issue still occurs.
    If above cannot work, I recommend to repair Office.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Excel 2008 wont open excel files from at WHS network share.

    hi all
    i have a strange problem here, i own a mac mini the 2.53ghz model bought a month ago, and a macbook (the white model) also bought a month ago, both running all the latest software updates, and office 2008 for mac, with all the latest updates
    on the mac mini, i can´t open any excel documents that are stored on a shared folder on my windows home server, it just says
    excel cannot open this file the file might have been damaged or modified from its original format
    but when i try to open the same document on the macbook, it opens just fine?
    i have tried to remove office 2008 and reinstall it on the mac mini, but that didnt help, and the strange thing is if i move the excel files, from my windows home server, to another windows home server, it opens just fine on the mac mini
    i then suspected that it was the WHS that was ****** up, and deleted the account on the WHS where the folders were stored, rebooted the whs, and added the account again, but with the same result, the mac mini wont open the excel files, it will open word files, from the same folder.
    and the macbook will still open both excel and word files, from the same folder?
    i´m really confused now, and cant seem to pinpoint the error, and hope that someone can give me some pointers of where to look?
    sincerely
    Carsten Larsen
    Denmark

    You're pobably better off posting your question on Microsoft's own forums for their Mac products, as it's their software you're having issue with:
    http://www.officeformac.com/productforums

  • Open Excel File from oracle directory on a local machine

    Hi,
    I have an application where I generate a excel using data in a table and write excel file in oracle directory.Now my requirement is to open that file from local machine .How can i achieve it.
    I am using Apex 4.2,Oracle 10g .
    Thanks
    Rajan.C
    Edited by: Rajanjai on May 31, 2013 5:34 PM

    Close your question here and open here
    Oracle Discussion Forums » Oracle Database » Application Express

  • Cannot go on suspend with an open Excel file from network

    Hi all,
    I cannot go on suspend with an open Excel file with macro - from network.
    The error msg is that I need to close all the open files first.
    "Windows cannot go on standby because Microsoft Office documents or application components are being accessed from the network. You must close the open documents or exit the application before you can put the computer on standby"
    The error msg will not appear when I use regular excel files, only with macro.
    Any ideas?
    Thanks.

    Hi,
    In regarding of the issue, there are some reasons.
    Firstly, if we got some error message like: "Cannot find the file 'C:\Folder\FileName.xls' .Make sure the path and filename are correct and that all required libraries are available."
    Please try the steps:
    Open Excel>Click on file>options>Advanced options>General tab>Uncheck the box “ignore other applications which use Dynamic Data Exchange (DDE).
    Secondly, When we try to open a Office file, it'll create a temp file in the same directory. If we have no full permission with the folder and OneDrive, we also could not open it.  Thus, we'd better make sure we
    have full permission. Please try to use the administrator account to test.
    Thirdly, please see the some general troubleshooting about Excel start issue:
    http://support.microsoft.com/kb/280504
    Hope it's helpful.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • How to open a file form a blob column?

    I'm storing some files in oracle 9.2 in a blob column, although i can't open them using php 4, I'm using this script :
    <?php
         $SQL="SELECT ID_ARCHIVO,CONTENT";
              $SQL=$SQL." FROM ARCHIVOS_PRUEBAS ";
              $SQL=$SQL." WHERE ID_ARCHIVO =".$v_ID_ARCHIVO ;
              $c=OCILogon("$v_USER" , "$v_PASS" ,"$v_CONEXION" );
              $s = OCIParse($c,$SQL );
              if (!OCIExecute($s)) { print "execution failed"; exit(); }
         OCIFetchInto($s,&$arr,OCI_RETURN_LOBS);
         echo $arr["CONTENT"]->load();
              ?>
    it shows this error
    Fatal error: Call to a member function on a non-object in ov_archivo_detail_test.php on [echo $arr["CONTENT"]->load(); ].
    I know the data is stored correctly since i used toad to save and open the blob file and it was ok, but i still can't find a right way to show the file from the web.
    Message was edited by:
    user560595

    Hi,
    <br>
    <br>
    Did you already try take a look on
    Oracle+PHP Cookbook: Working with LOBs in Oracle and PHP ?
    <br>
    <br>
    Cheers

  • Unhandled exception while opening excel file from e-business suite form

    Hello,
    I am getting error ORA-106561 (Unhandled errorg) when I am trying to open excel sheet which is reside in my desk top from Oracle E-business suite customized form using dde.app_begin('C:\Program Files\Microsoft Office\Office12\EXCEL.EXE'||'d:\emp.xls' ,dde.app_mode_normal)
    E-BUSINESS SUITE is in Unix server and EBS version is 10.5.10.2cu and hp Unix version is 11.11
    Please help me out in the above issue
    My objective is to open an excel sheet which is in my local disk and read and update the excel.
    Edited by: user538673 on Jul 23, 2010 2:20 AM

    Hello,
    This is the standalone Forms forum here.
    Please, ask your EBS questions on the E-Business Suite forum ;-)
    Francois

  • Unable to open excel files from yahoo mail

    I am unable to open an excel file in Yahoo! Mail (sent from PC) to my iMac.  My iMac has the MS Office suite too.  Any suggestions?

    Does not allow to open when on desk top. I took picture and Movie when i first got my iPhone5 and i have iphoto and iMovie 2008 they say ilife 11 is and upgrade. when i transfered pictures to start with to my iPhoto i had to inport them to iMove inorder to watch them. then when i messed around and added more shots and deleted some some went missing and to totally delet the whole bunch of photos and the movies My iMac made a folder in my Finder and drug and dropped and trashed my project that way. Three short movies went missing that i was looking to watch and they never showed back up. Today i started trying things in the New Yahoo.com Mail Applicatins Attachments and there were the three Items and the Mail Attachments page does not offer a Choice or deleting attachments.  Does Icloud save a few pictures and a movie or two for security reasons?   I tried Google answers to get my Yahoo front page restored so i do not have to use the Everything page and it was a Conection doctor and he or it wanted $38.00    I am not to sure i want to waste grocery money, Hard times!  
        If you can help great if not i am still working on things Greg

  • Opening Excel  files from a JSP page

    Hi,
    I am not able to open up an Excel file through JSP.
    I am using following code snippet in JSP page
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition","inline; filename=Test.xls");Do i need to do additional settings for rendering Excel from a JSP
    Thanks in advance !!!

    Hi,
    In my application , we have Excel files on the server i.e we are not creating excel sheets.
    I just want to display these static excel files through a jsp.
    I am able to display the excel files by reading them into ByteArrayOutputStream
    <%
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition","attachment; filename=B.xls");
    ServletOutputStream so = response.getOutputStream();
    String filename = "D:\\Test.xls";
    String mimetype = "application/vnd.ms-excel";
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    InputStream in = new BufferedInputStream(new FileInputStream(filename));
    byte bytebuff[] = new byte[500];
    for(int lengthread = 0; (lengthread = in.read(bytebuff)) != -1;){
    output.write(bytebuff, 0, lengthread);
    byte data[] = output.toByteArray();
    response.setContentType(mimetype);
    so.write(data);
    in.close();
    so.close();
    %>But my question is that , do i really need to do all this for rendering excel through a jsp.
    Can't i do it by just setting the content type ?
    Thanks

  • Error in Open Excel Files from JSP..it display Eksponen...

    How to set Excel format in JSP? - Error in Eksponen.
    Hi, i have a problem.
    I am using JSP to select data from database and open it as an Excel file.
    It works perfectly, but the problem is,
    when the data is NUMBER (even though in JSP, i declare it as a String), in the Excel file, when the data is more than 10, the data will change to Eksponen value.
    Should be = 982520000324464
    but in Excel is = 9.8252E+14
    Can anybody help?

    Depending on how you are generating the Excel file there are different solutions.
    If you are generating the Excel file using contentType="application/vnd.ms-excel" and HTML tables, then you can use the following attribute on the cell you wish to format:
    <TD style="vnd.ms-excel.numberformat:#,##0;">24.562234</TD>where the #,##0 corresponds to the format you wish to present the data in.

  • How to open excel files from email in macro enabled workbooks NOT 2003-2007 worksheets?

    I have recently installed Office 365 and it was working great. I needed to open excel documents via email with the macro enabled option. Yesterday it flicked back to only giving me the option to open in 2003-2007 workbook so now I am having issues with the
    macros. I am contracting and trying to get work out and this has now caused huge problems.
    Am thinking of uninstalling and reinstalling. I did have older versions of ms office so maybe there is some residual content there to remove? I have tried to change the associations and protocols to open in excel macro enabled workbooks but these tick boxes
    are greyed out and I do not know how to gain access to these. Have been hunting all through my computer system but do not know how to do this. Am no expert. 
    If someone could help I would really appreciate it otherwise will need to find some computer shop expert I suppose...urgently ha.
    Thanks in advance

    it's sound like excel 13 disable the macros, turn on it will fix your issue.
    see here:
    http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-files-HA010354316.aspx
    ps: use the local admin to change the setting, the reason why the setting grey out.
    KR

  • How come I can't open Excel files from a Windows computer on my Mac?

    My roommate created several Excel spreadsheets on his Windows XP computer and saved them. I put a USB drive in his computer and copied those files to the USB drive and then placed the USB drive in my MacBook. When I go to open the file, it indicates that the files are being used by another user and that it can't open them. What's going on?

    What happens if you copy them to the computer and eject the USB drive?

  • Double-click doesn't open Excel file from File Explorer

    I am having this problem on Win 8 Pro, using Excel 2013 - it is not giving an error though; it simply opens Excel with no workbook loaded...
    Please advise - thank you in advance,

    Hi,
    First, using the hotfix for Windows 8 to check the issue:
    http://support.microsoft.com/kb/211494
    If it is not work, then try the following steps:
    Close Excel
    Start | Run | Open
    Type in the box: excel /unregserver
    then click ok
    Start | Run | Open
    Type in the box: excel /regserver
    then click ok.
    Jaynet Zhang
    TechNet Community Support

  • Excel 2013 hangs while trying to open a file from network share

    Hi,
    I am having issue opening excel file from a network share. it happens randomly, the file opens and hangs abruptly. Nothing happens after that ( we can only move the cursor), if we click on the excel sheet we get a beep sound. after i kill the excel process
    and open it again ,it works fine.
    Where did the member use the Excel file? Local disk, SharePoint, File server, or network shared disk?
           Network shared file and sometime locally
    Does the issue occur in the special file or every file?
          it happens randomly and the whole excel freezes. i have to kill the excel session.
    Which Office version is the file created? Excel 2013 or early? If it is XLS format, please try to convert to XLSX to test.
         Network file server has office 2010 and the user is trying to open it in excel 2013
      Does the file have some macros?
     Yes, they have macros in some files 
    Does the issue occur recently? If it is, have you installed some programs or update before you encountered it?
           it happened before too.
    Do you get some error message when Excel crashed?
    Yeah. Attaching the error message from event viewer. We get file corrupt errors and below too.
    Please suggest

    Hi Suren424,
    Since your first image showed that "To see if more information about the problem is available, check the problem history in the Action Center control panel." Please go to this path (Control Panel\All Control Panel Items\Action Center\Problem Reports)
    to check the detailed information, and you might upload the screenshot or info here.
    Then, please try the following methods and check if they are helpful:
    1. File --> Options --> Advanced --> uncheck "Ignore other applications that use Dynamic Data Exchange (DDE)"
    2. Turn off "Protected View"  --> (File –-> Options –-> Trust Center --> Protected View --> Uncheck all options
    3. I notice that >>Network file server has office 2010 and the user is trying to open it in excel 2013 <<, it also might be caused by the Microsoft Office File Validation for Office 2010, please try to change setting in server with
    the link:
    http://support.microsoft.com/kb/2501584
    If you have any update , please feel free let us know.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

Maybe you are looking for

  • File Reciver adapter - an empty line

    Hi all, I have a problem when creating a file with File adapter CC, every time i am getting an extra line in the end of the file, How I can prevent this? Thanks, Naama.

  • Are there any ways to increase security in ODI

    Hi, Are there any other ways to increase security in ODI. I have heard about External password storage, External authentication and SSO from over here: http://docs.oracle.com/cd/E17904_01/integrate.1111/e12643/whatsnew.htm#CHDEAIAB apart from these a

  • Pass substitution variable to a region source

    Hi, I am trying to show an oracle report in a region. I was able to display it using javascript popupurl , in a seperate window. But, now I need to display it in the region. I want to pass the &Reports_url to region source, instead of writing the who

  • Boot Camp - Read/Write Windows Partition from OSX?

    I am assuming that if I format the Windows Partition with FAT32 I can read and write to the Windows Volume from OSX? But not NTFS?

  • What is Volume controller ?

    Can anybody tell me what the new volume controller function is and how I can access/use it? Thanks