Opening Excel sheet in Excel Application instead of browser

Hi,
I need to open an excel sheet from a JSP. When i click the link it opens a pop-up which asks open/save. This is fine. but when i click open it opens the excel sheet in the IE itself. I want the excel sheet to be opened using MS Excel Application. This is the piece of code i have used:
response.setHeader("Content-Disposition", "attachment;filename="+ displayFileName);
Also the pop-up does not show the "displayFileName" as set by me but some other name.
Please help me out regarding this!
Thanks in Advance!!!

I think that for that you have to use java with activeX
http://www.javaworld.com/javaworld/jw-09-1996/jw-09-blundon.html
or if possible use the runtime library to call the excel executable and send it arguments.
MeTitus

Similar Messages

  • How to downlaod vednor master data into excel sheet in SAP Application serv

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    It is not possible to download data in Excel file on application server. You can better download the same in tab separated text file and then convert that text file to XLS.
    Please do not open multiple threads for same problem.
    Regards,
    Atish

  • How to downlaod vednor master data into excel sheet in SAP Application ser

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    You can download the data into application server using the following code. You will have the vendor details in the internal table. Then you will open a file and transfer the data as follows.
    *   Download internal table to Application server file(Unix)
    DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.     
      open dataset e_file for output in text mode.
      lOOP AT it_datatab......
        transfer it_datatab to e_file.
      ENDLOOP.
      close dataset e_file.
    In application server you will have only files and not excel sheets.
    Reward points if useful,
    Aleem.

  • Upload Specific Excel Sheet from excel file in sap internal table..

    I have an excel sheet and it contains many sheets.. I want to read a specific sheet no.. or that sheet would have sheet name.. i want to read that specific sheet and load its data in the internal table.

    Hello,
    In this case you need to create OLE object and then get specific workbook using it's method.
    For e.g.:
    CREATE OBJECT gh_excel 'EXCEL.APPLICATION'.  
    CALL METHOD OF gh_excel 'Workbooks'= gh_mapl.  
    You can search SAP help for more information on using OLE objects.
    Thanks,
    Augustin.

  • Remove the scroll bar of excel sheet in excel web access web part sharepoint 2010

    Hi All,
    i am using excel web access in sharepoint 2010. but when i insert excel file in this its showing me 2 scroll bar. one for sharepoint page which is easy to remove and second in excel file.
    so i want to remove the excel sheets scroll bar not for pages scroll bar.
    i have tried all things like adjust height width and all things but unable to remove scroll bar for
    excel file.
    Please give some soln or steps for this. Please reply ASAP.
    Thanks
    Vivek

    Hi Vivek,
    You tried almost all possible ootb way to achive your goal, but contact inside excel file and browser compatibility restrict you to adjust height and width using web part properties.
    You can try below article and include that script to fix this 
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/jquery-for-everyone-dynamically-sizing-excel-web-parts.aspx
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Unable to open forms when Launching another application on same browser.

    Hi,
    I have a server with configuration Oracle EBS 12.1.1 on RHEL 5.5, Database 11.1.0.7. On client machine we use Internet explorer, Firefox and Chrome to access the EBS and forms.
    We are able to open the forms from all browsers, but problem arise when we access another application on same browser, resulting in not opening of oracle forms.
    This is a java application using the same database on the server. This application works fine but Our Oracle Forms has to face the problems.
    When we try to launch the forms, it results in FRM-92101 error. I read the MOS documents for
    R12: "FRM-92101:There was a failure in the Forms Server during startup" Error When Attempting to Launch Forms [ID 454427.1]
    Then I checked the application log file, it says that:
    13/08/12 18:47:41.891 formsweb: Forms session <207> failed during startup: no response from runtime process
    13/08/12 18:50:43.704 formsweb: Forms session <209> aborted: runtime process failed during startup with errors
    Unable to switch to Working Directory: /oracle/TEST/apps/tech_st/10.1.3/forms
    When I further investigate I found there is no such "forms" directory under "/oracle/TEST/apps/tech_st/10.1.3".
    Then I read Oracle Notes:
    FRM-92101 : Unable To Switch To Working Directory. (Doc ID 1434888.1)
    FRM-92101 Error in Application.log: Unable to Switch to Working Directory (Doc ID 432708.1)
    But no luck with all these. Please suggest something. Can't open both application simultaneously on same browser.
    Regards,
    Prashant Namdeo

    Hi,
    Please state whether the application was working fine before.
    Please provide log file  of:
    --$LOG_HOMEora/10.1.3/j2ee/forms/forms_default_group_1/application.log
    --DB alert logfile --check whether you can find any valuable information.
    Please have a look at the following MOS notes:
    FRM-92050 java.lang.UnsatisfiedLinkError: no frmjsl in java.library.path [ID 438522.1]
    Troubleshooting FRM-92XXX Errors in Oracle Applications [ID 365529.1]
    And have a look at:
    http://oracleared.blogspot.com/2012/11/frm-92191-there-was-failure-in-form.html
    Best Regards,

  • Password protected Excel sheet on the application server (dataset)

    How can I create password protected excelsheet on the application server? Is it possible through DATASET?
    How can I modify below statement to create xls password protected?
    OPEN DATASET dest FOR OUTPUT IN BINARY MODE.
    Regards
    K

    could you ask moderator (via abuse button) to move it to the ABAP forum?
    Edited by: Sandra Rossi on Nov 23, 2009 1:13 PM

  • Download an excel sheet on to application server

    hi solve this

    Hi
    same req
    reward if usefull
    TABLES : MARA.
    TYPES : BEGIN OF TY_MARA,
              MATNR LIKE MARA-MATNR,
              WERKS LIKE MARC-WERKS,
              PSTAT LIKE MARC-PSTAT,
            END OF TY_MARA.
    DATA : IT_MARA TYPE TABLE OF TY_MARA.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.
    SELECT MATNR
           WERKS
           PSTAT
         FROM MARC
         INTO TABLE IT_MARA
         WHERE MATNR IN S_MATNR.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = 'C:\NARESH\eXcel5.TXT'
      FILETYPE                        = 'ASC'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = IT_MARA
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC EQ 0.
    MESSAGE I100.
    ENDIF.

  • Comparing 2 excel sheet in excel 2010

    Hi 
    I am running report where I am comparing data from  last month to current month.
    lets take an example here
    sheet 1
    A                   B                   
    abc inc           20,000           
    xyz ltd            30,000
    Qrs Co             40,000
    wxy pvt           80,000
    abc inc             10,000 
    sheet 2
    A                   B
    abc inc           80,000
    xyz ltd            40,000
    Qrs Co             40,000
    MnO inc           60,000
    PQR               10,000
    abc                 20,000
    What I am looking to here is 
    1) Identify the change like XYZ from  30k-40k
    2) Mno and PQR added to sheet 2
    3) wXy not in  sheet 2
    4) shows right abc value

    sheet 1
    abc inc           20,000           
    abc inc             10,000 
    sheet 2
    abc inc           80,000
    abc                 20,000
    I have quoted the related part only and therefore this is not
    possible, except you define
    special rules.
    You can use a simple VLOOKUP formula to get the values in sheet2 from sheet1, but only when the value in column A is unique.
    This is the basic
    requirement for comparing any records.If this is not
    given, then all attempts are only
    guessing games.
    Andreas.

  • Link in the Task Mail opens the form in Infopath Designer instead of browser

    Hello,
    I have designed an InfoPath form and associated a SP designer workflow.
    It is a approval workflow. When a new form is submitted, using the "Send Email" action in the workflow, it notifies the approver that a new form has been submitted and needs approval. In the mail body, I have used the Current Item's "URL Path"
    for the user to be taken to the submitted form directly.
    This opens up the form, but instead of the browser, it forcefully opens the form in the InfoPath designer. I have set the forms to open in the browser in the advanced settings of the library.
    Where and what else change do I still need to perform for the form to open in the browser?
    Thanks,
    Guru

    Hi,
    From your description, I am not quite sure your issue clearly, my understanding is that you want to send item URL to user with workflow, and the user can access the item by the
    URL. Your issue is that user will download the item via the URL instead of open the item in browser. If my understanding is incorrect, could you provide detailed information or a screenshot?
    Could your provide the URL that user
    received in the mail?
    You could try to construct the URL pointing to the current item which could be open in browser as below.
    http://sp/form1/test.xml?DefaultItemOpen=1
    http://sp/_layouts/15/FormServer.aspx?XmlLocation=/form1/test.xml
    http://sp/_layouts/15/FormServer.aspx?XmlLocation=/form1/test.xml&ClientInstalled=true&DefaultItemOpen=1&Source=http%3A%2F%2Fsp%2Fform1%2FForms%2FAllItems%2Easpx
    Best Regards
    Vincent Han
    TechNet Community Support

  • Click a Link and open the save-as dialog box instead of browser opening it

    Basically, i have a link to an image and when i click it the browser opens the image. I would prefer that when i click the link to the image that i get some sort of save functionality to occur.
    I created a link to the Google logo so it looks like Google image when clicked the browser opens the image. What i would like to do is click the link and then have the save-as dialog pop up (or something similar). Currently I would either have to right click the opened image and save image as or right click the link and then save-as that way. In this instance the file doesn't reside on the database but an external source so is there a way to save-as dialog once the link is clicked?

    Sorry, I have no idea what you are doing; can you give us some details?

  • Downloading logo in excel sheet from application server

    hi all
    how can i download a logo in excel sheet from the application server(logo is in OAOR tcode) .you can also specify with OOPS concept.
    rewards assured.
    Reagrds
    Swarnali Basu

    hi naresh
    i think there is some miscommunication in case of my question,my requirement is to add a logo in excel sheet from application server,i mean when the user clicks to download the excel sheet the logo should immediately appear in the excel sheet,and it is not a fixed logo it can be anything which appears in applicaton server(on that program).
    as far as excel sheet stanalone is concerned i know to do it and as well as to get the logo  in the application server standalone ,but i cant download the logo in excel sheet from the application server.now does my question make sense ?
    Reagrds
    Swarnali

  • Problem while executing app for retrieving data from EXCEL Sheet

    hi
    i have this exception while running my application of retrieving data from a Excel sheet through java application , i had also set theclasspath for jxl. jar file but where its going wrong i dont know heres my code
    import java.util.Date;
    import java.io.*;
    import jxl.*;
    import javax.swing.*;
    import java.awt.*;
    import jxl.read.biff.BiffException;
    public class testExcel2
    public static void main(String args[]) throws jxl.read.biff.BiffException
    try
    File f=new File("move.xls");
    jxl.Workbook workbook=null;
    jxl.Sheet sheet=null;
    workbook=jxl.Workbook.getWorkbook(f);
    sheet=workbook.getSheet(0);
    Cell a1 = sheet.getCell(0,0);
    String stringa1 = a1.getContents();
    System.out.println("stringshaddddddddjk "+stringa1);
    workbook.close();
    }catch(IOException ex){
    System.out.println("Error" + ex);
    catch (BiffException ex2){
    System.out.println("Error" + ex2);
    catch(IndexOutOfBoundsException ex1){
    System.out.println("Error" + ex1);
    compilation is sucees but while running its giving an EXCeption
    MicrosoftXP[Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    G:\mysfw\pgms>java testexcel2
    Exception in thread "main" java.lang.NoClassDefFoundError: testexcel2 (wrong nam
    e: testExcel2)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

    Java is case sensitive. testexcel2 is different from testExcel2.
    G:\mysfw\pgms>java testexcel2
    Exception in thread "main" java.lang.NoClassDefFoundError: testexcel2 (wrong name: testExcel2)

  • Using Olefield to embed an excel sheet

     

    Hi Manish,
    My answer may not be straight to the point.
    But, let me explain what I have done with my application.
    We have a similiar case here, but the difference is we are
    accessing Crystal Reports where as you are accessing Excel sheet and you
    are using OLE object where as we are using Active X. But the concept
    is going to be the same.
    Our application contains some batch process on the server which
    fills up the table in our database.
    Crystal report should access the table and get the data.
    For this we need to pass a set of parameters through Forte.
    This is acheived through the active X properties.
    I think you can map excel sheet to a data base table and fetch
    the data from there using some simple macros.
    Hope this helps you.
    Ratna K Garapati,
    Complete Business Solutions Inc.,
    Off : 248 848 2288 Ext 3464
    Res: 248 888 0775
    E-Mail : [email protected]
    -----Original Message-----
    From: Manish Shirke [SMTP:[email protected]]
    Sent: Monday, March 09, 1998 8:20 AM
    To: '[email protected]'
    Subject: Using Olefield to embed an excel sheet
    hi,
           I am trying to embed an MSExcel sheet in a forte application. I
    have
    been able to create the Excel project using Olegen and also to embed
    an excel sheet in my application window. Now I need to map the data in
    my application onto the excel sheet using the Ole API. I am trying to
    figure
    it out due to lack of sufficient forte documentation.
         If any forte users have done this previously and know how to map
    data
    from their application onto the excel sheet, can they kindly help me
    out.
    Thanks
    Manish Shirke
    [email protected]

  • Uploading an excel sheet data using Oracle APEX 3.2

    Hi All,
    Please help me out to upload excel sheet data using oracle APEX 3.2.
    Am following the steps mentioned in the below link, but even after that am getting an error saying no data found
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Please help me to proceed further.
    Regards,
    Sakthi

    Hi Andy,
    Thank you very much for looking into my thread.
    Actually i followed everything that is been mentioned in "http://avdeo.com/2008/05/21/uploading-excel-sheet- using-oracle-application-express-apex/" and i got a successful result.
    But, with the above process I can only upload a .csv format excel and not a .xls format excel file.
    Thats where i got stucked and unable to find any clue on how to move further to achieve in uploading .xls file.
    It would be very great if you guide me through in this process.
    Shiva

Maybe you are looking for

  • How do you add a date/time stamp to photo before printing?

    How do you customize a photo?  I want to add a date to a photo before printing.

  • Adobe PDF Printer creating corrupt PDFs

    Greets, One of my customers has a bit of an odd issue: He has Acrobat X Pro (10.1.2), Windows 7 64-bit, and when he creates a PDF via the Adobe PDF printer (Distiller?) using any software (even as simple as notepad) it opens correctly on his computer

  • Deployment : Exporting and importing a ABAP code to other SAP Server

    Hello Expert, I am very new to SAP ABAP. My query is , If we write a code in user exit on one SAP server and if we need to deploy the same on other SAP server who are not tightly coupled with each other , How should we do?? Is there any way to export

  • Requested resource is not avaliable error

    i wrote a servlet which is under WEB-INF/classes/package1/servlet1.class but when im trying to use him im getting the error- "The requested resource (servlet servletName is not avaliable) is not avaliable" why does that mean? thnaks in advanced.

  • DVD problem burning with iDVD..... PLEASE HELP ME !

    hello, i have a big problem during burning a dvd of a presentation of pictures from iphoto by idvd. When the burning processing is almost finish i get this error: "error during formatting process" I never had this kind of problem previously,so i don'