Problem in opening excel file in different window

hi
i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
it give error that file has already used or path not exist OR requisted site either unavailable
how can i rectified

Hi.
I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
The file name or path name does not exist.
The file you are trying to open is being used by another progrtam . close the document in other program and try again
The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
Thanks
Hitesh

Similar Messages

  • Is it possible to open Excel file in XAML Windows Store App?

    Hi,
    I want open excel file from local folder(not from Url) within the windows store app.
    Could you please help me how to implement ?
    Thanks,
    Siva varri
    Thread response from msdn

    Hi,
    If you want to open an excel file by a windows store app. There is no direct API in windows store app can handle excel file. You will need to find a third party component. But
    if you want to launch a file into its default handler, please see 
    Launcher.LaunchFileAsync API. And you can refer to the link below:
    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779671.aspx
    private async void Button_Click(object sender, RoutedEventArgs e)
    StorageFolder storageFolder =
    Windows.Storage.ApplicationData.Current.LocalFolder;
    StorageFile file =
    await storageFolder.GetFileAsync("56.xlsx");
    if (file != null)
    // Launch the retrieved file
    var success = await Windows.System.Launcher.LaunchFileAsync(file);
    if (success)
    // File launched
    else
    // File launch failed
    else
    // Could not find file
    Best Wishes!
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Opening similiar files in different windows problems

    When i opening an existing file in a new window or "desktop" (the ones you see when you press F3), i want them to open in the desktop window that i have selected. For example if i open for file in desktop one in will open there. Now if i wanted to open a different file in desktop 2 it automatically opens in desktop one because there where an existing word file is. I noticed the same problem for chrome as well. Is there any way to disable this? It becomes extremely annoying when i have certain windows open for certain projects.
    Thanks

    further clarification
    http://imgur.com/o7SZp1E
    so if i want to open a new word document in window 3 and the program is already open in window 1 it will automatically open the new word file in window 1. so if i am on window 3 it will drag me back to window 1 as the new file opens which is super annoying. i have a feeling this cant be disabled but just want to make sure.

  • Problem opening excel file in new window

    Hi,
    I have a JSF application that sends an Excel file back to the user.
    My backing bean has a method that uses POI to generate the excel file and then write it to the servlet response.
    This works fine if I call the method from a command button, but this displays the file in the current browser window, whereas I want to open the file in a new window.
    I added an onclick javascript call to a command button which does a window.open() to open a jsp in a new window. The jsp contains an empty view, as I'm using an on-load phase listener to make the call to my backing bean method which should send the excel file when the file opens.
    However, when the window opens, I get an IE error message saying 'Could not open xxx.faces', and then an excel error message saying 'Could not open xxx.xls. This may be because the file does not exist, or the file is already open etc etc'
    However, I found that if the popup window goes through a servlet (which just forwards to the jsp page) instead of going to the jsp directly, it works like a charm.
    Any ideas or suggestions on how to fix this would be very much appreciated. If I can't fix it I'll just stick with the servlet approach, although it just seems a bit messy.
    (I'm using IE6 SP2, tomcat 5.5 btw)
    Cheers,
    Stuart

    I'm doing a similar thing, but I use commandLink to lauch the window. CommandLink has the "target" attribute that I set to _blank.  As you would expect, that opens up the page in the new window.                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in Opening Excel file

    Hi......
    I've written a logic for sending mail through FM SO_DOCUMENT_SEND_API1 every thing works fine a get a attachment of the  excel file with all the data but when i open the file i get a pop message saying Worksheet setting problem.....and the file does'nt gets open........i'm just wondering what might be the problem.......it was working on well yesterday and now i get this....strange......what might be going wrong........Let me know and correct answers would be surely awarded.........
    I use to get a same message for other program's excel file and it still opens the file......but this current excel file seems to be not opening.......

    Hi,
    Better use 'SO_OBJECT_SEND'  FM .
    Sample code:
    Declaration
      DATA:    lwa_hd_change TYPE sood1,
               lt_objcont    TYPE STANDARD TABLE OF soli,
               lwa_objcont   TYPE soli,
               lt_receivers  TYPE STANDARD TABLE OF soos1,
               lwa_receivers TYPE soos1 ,
               lt_att_cont   TYPE STANDARD TABLE OF soli,
               lwa_att_cont  TYPE soli,
               lt_packing    TYPE STANDARD TABLE OF soxpl,
               lwa_packing   TYPE soxpl,
               lf_sent       TYPE sonv-flag,
               lf_size       TYPE i.
      CONSTANTS: lc_obj(11)  TYPE c VALUE 'BOMSouthco',
                 lc_desc(20) TYPE c VALUE 'BOM Download',
                 lc_lang(1)  TYPE c VALUE 'E',
                 lc_raw(3)   TYPE c VALUE 'RAW',
                 lc_net(1)   TYPE c VALUE 'U',
                 lc_mail(4)  TYPE c VALUE 'MAIL',
                 lc_xls(3)   TYPE c VALUE 'XLS',
                 lc_ext(3)   TYPE c VALUE 'EXT'.
    Passing values to the strutures used in SO_OBJECT_SEND function module
      lwa_hd_change-objla      = lc_lang.
      lwa_hd_change-objnam     = lc_obj.
      lwa_hd_change-objdes     = lc_desc.
      lwa_hd_change-objlen     = 255.
      lwa_objcont-line = text-t29.
      APPEND lwa_objcont TO lt_objcont.
      CLEAR lwa_objcont.
      lwa_receivers-recextnam  = text-t31.
      lwa_receivers-recesc     = lc_net.
      lwa_receivers-sndart     = lc_mail.
      lwa_receivers-sndex      = 'X'.
      lwa_receivers-sndpri     = 1.
      lwa_receivers-mailstatus = 'E'.
      APPEND lwa_receivers TO lt_receivers.
      CLEAR lwa_receivers.
      lwa_receivers-recextnam  = text-t30.
      lwa_receivers-recesc     = lc_net.
      lwa_receivers-sndart     = lc_mail.
      lwa_receivers-sndex      = 'X'.
      lwa_receivers-sndpri     = 1.
      lwa_receivers-mailstatus = 'E'.
      APPEND lwa_receivers TO lt_receivers.
      CLEAR lwa_receivers.
    Passing values for the attachment file
      LOOP AT gt_output INTO gwa_output.
        CONCATENATE gf_lf  gwa_output-matnr  gf_etb  gwa_output-idnrk  gf_etb
                    gwa_output-type   gf_etb  gwa_output-menge   gf_etb
                    gwa_output-meins  gf_etb  gwa_output-comp    gf_etb
          INTO lwa_att_cont-line.
        APPEND lwa_att_cont TO lt_att_cont.
        CLEAR lwa_att_cont.
      ENDLOOP.
      CHECK lt_att_cont IS NOT INITIAL.
      DESCRIBE TABLE lt_att_cont LINES lf_size.
      lwa_packing-transf_bin = ' '.
      lwa_packing-head_start = 1.
      lwa_packing-head_num   = 0.
      lwa_packing-body_start = 1.
      lwa_packing-body_num   = lf_size.
      lwa_packing-file_ext   = lc_xls.
      lwa_packing-objlen     = lf_size * 255.
      lwa_packing-objtp      = lc_ext.
      lwa_packing-objdes     = lc_desc.
      lwa_packing-objnam     = lc_obj.
      APPEND lwa_packing TO lt_packing.
      CLEAR lwa_packing.
      CHECK gf_error IS NOT INITIAL. "Check if unix file is written
    FM to send email to the intended recipients
      CALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          object_hd_change           = lwa_hd_change
          object_type                = lc_raw
        IMPORTING
          sent_to_all                = lf_sent
        TABLES
          objcont                    = lt_objcont
          receivers                  = lt_receivers
          packing_list               = lt_packing
          att_cont                   = lt_att_cont
        EXCEPTIONS
          active_user_not_exist      = 1
          communication_failure      = 2
          component_not_available    = 3
          folder_not_exist           = 4
          folder_no_authorization    = 5
          forwarder_not_exist        = 6
          note_not_exist             = 7
          object_not_exist           = 8
          object_not_sent            = 9
          object_no_authorization    = 10
          object_type_not_exist      = 11
          operation_no_authorization = 12
          owner_not_exist            = 13
          parameter_error            = 14
          substitute_not_active      = 15
          substitute_not_defined     = 16
          system_failure             = 17
          too_much_receivers         = 18
          user_not_exist             = 19
          originator_not_exist       = 20
          x_error                    = 21
          OTHERS                     = 22.
      IF sy-subrc = 0.
        MESSAGE s004 WITH text-t34.
      ENDIF.
      COMMIT WORK.
    Reward if helpful.
    Regards,
    Ramya

  • Problem while opening excel files in office 365

    Hi, Facing issue in office 365. Suppose one excel file is already opened and if we tried to open another one it just is looks like opening file and if check after sometime it shows excel blank window to open new file.
    Please help

    Hi,
    Thanks for your post.
    Based on my experience, if you've ticked the option of "Ignore other applications that use Dynamic Data Exchange (DDE)“
    under FILE>Options>Advanced, you will probably have this kind of issue.
    Please try to turn off that option and see if it works.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • 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?

  • Can't open excel files sent from windows xp pc

    sending excel files from pc via msoffice and when received on imac (mail v2.1) file is a '.dat' file, not a format that excel can open. should be a '.xls' file. file is sent as an attachment to an email from ms outlook on the pc.
    get same result when sending to entourage on the mac.
    msoffice v.X is installed on mac. msoffice 2002 is installed on the pc.
    any ideas on where the problem is would be greatly appreciated.

    I am also using Office for the Mac and I never had such an issue. I have received hundreds of excel files from pc users and same number of files from mac users.
    The problem that you have is somewhere else. You may need to check at :
    http://www.entourage.mvps.org/faq_topic/attachments.html#att7

  • Not able to open excel file in new window any one plese help me as early

    Hi all,
    I have a imag tag in jsp on click on the image i am submitting the form
    1. i have used the below code
    HSSFWorkbook wb=viewHelper.getExcel();
    response.reset();
    ServletOutputStream outs = response.getOutputStream();
         response.setContentType("application/vnd.ms-excel");
         response.addHeader("Pragma", "No-cache");
         response.addHeader("Cache-control", "no-cache");
         response.addDateHeader("Expires",1 );
         wb.write(outs);
         outs.flush();
         outs.close();
         return;
    2. I got one dialog box to open ,save,cancel . if i try to open it is openeing in the same window i had made the request. i need it to ask for in which type of application to open. i.e, in excel , notepad,.....
    please mail me as soon as possible
    [email protected]

    I had a similar porblem....
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......
    Thanks in advance...

  • Cannot open Excel files on Windows share and ONLY Excel files

    I'm browsing a Windows share and for whatever reason it will not let me open Excel files directly from the network location. If I view the Coverflow, I can see a a preview of the actual file as well as copy it to the desktop and open it.
    I receive an error message that says "filename.xls could not be found."
    I can open up any other file from the network location, but not Excel files.
    I checked the file permissions and they mirror the other file types, it may be worth mentioning that I utilize network synchronization and view these files from a PC as well. I also noticed when I create a new file in that location, it will only appear in OS X and not Windows, but is still completely accessible.
    Any help is appreciated!
    Thanks

    Re:  Windows 8 vs. Excel problem
    Does your new Dell computer have MS Office installed?
    Jim Cone
    Portland, Oregon USA
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Unable to open Excel files on Windows Network

    I can no longer access Excel files on a windows network drive. I have tried disconnecting and reconnecting, restarting my computer and it still doesn't work. I am able to drag the files to my desktop to open it, but It will not let me save back to the network and replace the exsisting file. Says that it can not be accessed and may be read only.
    It worked for me the first week I had the computer, but then stopped. All other file types open just fine.
    Please help.
    MacBook Pro Mac OS X (10.5.4)

    Excel files can be protected by the author. That is, an 'internal to the file' flag can be set to read only.
    Additionally, for files on the network, if a file was improperly closed, then the server believes the file is still in use, therefor, marks it as read only.
    It's easier to do the next thing from a windows box... make sure the windows box is set to show hidden files.
    Navigate to the directory in which the file is located, and check it for hidden temp files. It will likely be named
    "~actual name of file.xls."
    This is an indicator someone either has the file open, or had it open, didn't close it properly, thus it is considered open.
    Deleting the hidden "~nameoffile.xls" may clear the problem.

  • Problem opening excel files exported from Discoverer Plus 10.1.2.48.18

    I can't open excel files (xls) exported from Discoverer Plus 10.1.2.48.18 when I enable macros. The application (Excel) hangs up.
    Someone have any idea about this?
    Thanks,
    Diego

    Hi Meifang
    I did some more research and found a document on MetaLink 250820.1 that talks about Discoverer not being able to call Excel if Discoverer is running via an IP address instead of a qualified domain name.
    The article talks about making Discoverer a trusted site in the Internet Options of IE. Here's the relevant info from the posting:
    Workaround for MS IE (if necessary):
    1. Open a new MS IE browser
    2. Navigate to: Tools | Internet Options Security where you will see the Trusted Sites icon (green icon with a check mark)
    3. Click the Sites button
    4. Add the following: http://IP:port/
    (where IP, port are the location of where Discoverer server is running)
    5. Click the OK button
    6. Click the OK button again
    On my own PC, I was having a similar problem and I was unable to get Excel to launch. In the end I did this:
    1. Open a new MS IE browser
    2. Navigate to: Tools | Internet Options | Security where you will see the Local Intranet icon (computer icon against a globe)
    3. Click the Local Intranet button
    4. Click the Sites button
    5. Click the Advanced button
    6. Add the following: http://IP/ or http://website
    (where IP or website are the location of where Discoverer server is running)
    7. Click the Add button
    8. Click the OK button
    9. Click the OK button again
    10. Click the OK button a third time
    With this done, I made sure that my Explorer settings were correct by doing the following to ensure that a couple of settings for the .xls & .html file types are unchecked:
    1. Open Windows Explorer
    2. Navigate to: Tools | Folder Options | File Types tab
    3. Highlight the Extension XLS (or HTML)
    4. Click the Advanced button
    5. At the botton of the screen are three settings that use checkboxes. If either of the following two are checked, un-check them:
    Confirm Open after Download and Browse in same window
    6. Click the OK button
    7. Click the Apply button
    8. Re-boot the PC
    After I did this I was successfully able to get Excel to open from within Discoverer.
    Best wishes
    Michael

  • Problems opening .pdf files created in Windows in MAC

    My clients that are using Macs are having problems opening password protected PDFs that I created in Windows. Any suggestions?

    Are your clients using Adobe Reader on Mac, or the built-in Mac OS Preview?  Preview does NOT support the full PDF standard :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 26 Sep 2011 15:04:18 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Problems opening .pdf files created in Windows in MAC
    Problems opening .pdf files created in Windows in MAC
    created by Hollcy<http://forums.adobe.com/people/Hollcy> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3939175#3939175

  • Windows 7 - Open Excel 2010 in separate window

    Setup:
    Windows 7 Ent.
    2 monitors in extended desktop mode
    Office 2010
    Opening Excel Files from multiple sources (Outlook 2010, Desktop, OneNote 2010, etc.)
    New laptop with 12GB of RAM
    i7 Quad Proc.
    Problem:
    By default, all of my Excel books open in the same window of Excel.  I open lots of sheets that need visual side-by-side comparison.  I want every every Excel book I open to have its own Excel window.  It doesn't necessarily need to be it's
    own running instance of the binary, but it's own separate window that I can minimize, maximize, resize, or close independently of the other Excel windows.
    I've tried the registry fixes for DDE.  I've tried the "Ignore other applications with DDE" option in Excel.  Both of those solutions give the desired multi-window result, but both break my ability to open spread sheets from OneNote and
    Outlook.  The error for OneNote is "OneNote has encountered a problem and cannot complete this operation", when I double click an embedded Excel file.
    Question:
    Is it possible to get Excel to open a new window for each file without disabling DDE or breaking my ability to open embeddede spreadsheets from other applications like Outlook and OneNote?  The "Put Excel into windowed mode and drag it across multiple
    monitors" work around is not feasible since I run two different sized monitors.

    Not necessarily an ideal solution, but the only way I've found with Excel 2010 is to open a second instance of Excel, which will then allow you to move it to the second screen and either open your spreadsheets from there, or drop and drop them into
    the required copy of Excel from Outlook/OneNote. Annoyingly with Excel 2010 by default it only opens one instance of Excel and then all workbooks you open after then are opened within that same instance, but if you select Excel from the start menu it will
    open a second (or third, or forth etc) instance which can be moved and handled independently.
    The other option would be to upgrade to Excel 2013 since that doesn't have that limitation, but that may be an expensive way around the issue!

  • 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

Maybe you are looking for

  • Primary indexes missing

    Hi friends, In transaction DB02 I am getting 7 primary indexes missing,please tell me how to correct this error. Regards, Vish.

  • Apps purchased on iPad are being deleted when syncing with iTunes

    Hi, I am having a problem with the apps that I purchase using my iPad not syncing with iTunes. I have purchased several apps and books. When I use my iPad to make the purchase and then plug the device into my computer to allow it to sync, iTunes goes

  • Classpath option in HP-UNIX -- java.lang.NoClassDefFoundError

    Hi , I am facing a problem using -classpath option in HP-UNIX. Through Java program I am invoking java using classpath option as given below. JAVA_HOME/bin/java -classpath "C:\NewFolder\input.jar" .... It is working fine in Windows: I have to do the

  • Urgent SQLJ Help

    I am new to sqlj. We have Oracle 8i and Windows NT. I included the translator.zip and classes12.zip in my classpath. When I try to run sqlj on command prompt it gives the following error " Oracle not installed properly". Why is this occuring? Is ther

  • Purchased song won't play due to authorization

    I purchased 42 songs and all of them play fine except one.  It keeps giving me an error that my computer is not authorized to play it.  I can't play it on my ipod or on my Mac in itunes.  I purchased all in the same session, at the same time on the s