Open the excel spreadsheet in Excel.

Hi,
I am outputing data as an excel spreadsheet via jsp, but there are no toolbars etc available (for sorting, etc) when displayed within the browser.
Is it possible to always open the excel spreadsheet in the Excel-application (even if the user/client have "Browse in same window" for the file type)?
Thank you

May be this could help:-
The points given below gives idea about how to display the report or
static data for which data is retrieved in the servlet and printed
through jsp.
1. The conversion of report into excel is done by changing the
setContentType of response
in the servlet.The mimeType should be added in mimeTypes of application
server corresponding to the string given in setContentType.The setHeader
is for default file
name for excel
Example:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","attachment;filename=file.xls")
Setting Mime type in server(Weblogic):
weblogic.httpd.mimeType. application/vnd.ms-excel =xls
2. In IE the excel is directly downloaded and the user explicitly
saves in the local system.In Netscape the user is given the option to
open the file or save it to the local system
3. Note:
1) It is better if the whole information of the report in a single
table.
2) If the application requires both html and excel format of the same
report to be displayed on certain conditions, it is better to have two
different jsps one for html and other for Excel since the formatting is
different
krishna

Similar Messages

  • Opening an Appleworks spreadsheet in Excel

    I transfered some files that were created in Appleworks 6.0.4 onto my MacBook with Office: Mac 2004. Nothing seems to open these files. I want to convert (or even copy) them into an Excel spreadsheet. Any suggestions?

    Hi Melissa,
    Welcome to Apple Discussions and the AppleWorks forum.
    icExcel should also be able to save the spreadsheet as an MS Excel document.
    Or you could:
    • Open the AW spreadsheet in icExcell
    • Select All and Copy*
    • Launch MS Excel and open a new spreadsheet.
    • Paste, then Save the spreadsheet using MS Excel.
    *(I don't know if the select and copy part of this is possible in icExcel)
    Regards,
    Barry

  • I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version

    I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version. I was able to access them in 4.3.1 .
    Can anybody tell when is this getting resolved.

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    Your old Profile is located here in Vista & Win7: <br />
    ''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name''

  • I can not open the products spreadsheet

    If you are using anything other then Excel and when you open your product spreadsheet and it all looks messed up in an application such as Numbers (Mac) then there is a simple fix to correct this.
    Rename the file you have from .xls to .csv and then open it up. Everything should look as you would expect.
    Note: If you have some funny code in the very first cell just delete it.

    Please help. i want to buy an i touch today but dont think its worth it if i cant put any of my music/apps i already have on it. HELP ME!

  • Error while opening the xml request in excel format

    hi,
    I have created xml report for existing standard report.
    It is working fine in PDF format.
    But if try to open in excel, if i click view output, new windows appears and immediately disappearing.
    please tell me what to do for this problem.
    thanks in advance.

    If the page is running fine for other OU and giving error only for one OU then it means there is some setup issue.
    Either some profile value is not set for that particular responsibility whereas it is set for others
    or there is some setup missing at OU level.

  • How do I read a winmail file when it is attached to an e-mail?  It doesn't open the right way in Excel on my iMac.

    How do I read a "winmail" file when it is attached to an e-mail?  It doesn't open in Excel on my imac, just code...help! 

    Winmail is for Windows only. Excel does not open emails.
    Ask the sender to send the file in a more up to date format.

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

  • Report output to excel spreadsheet

    Hi,
    I have a matrix report which will be run through oracle apps by the user. Now the user will open the output file in excel spreadsheet for further analysis.
    I can not create an ascii file as it is a matrix type report. What could be the best solution ?
    Thanks.

    Thank you so much Marwim. Your suggestion is very helpful. But I have some other Oracle reports which have only one .rdf file giving output in both pdf and Excel. This doubt might be silly. Almost same features were existing for the rdf what I am working now. For the remaining reports, it was given that DESFORMAT=SPREADSHEET , what this report lacks. I googled and found these links http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm &
    http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm#CIHFDJAJ . But they are not intended for excel output. they generate only web layout in spreadsheet form. Could you please suggest any other ways to achieve this.
    Thank you in advacne.
    Edited by: user07960 on Jan 10, 2013 10:47 AM

  • Getting extra line after each record when opening a .txt file in excel

    Hi All,
    I have developed a program which downloads a file at application server.
    each record of file is 500 characters long & have CRLF at end.
    the file looks fine when opened in .txt format.
    however when i download it from application server to presentation server (using function "download to my computer"), & at presentation when i try to open it in excel format, it shows a blank line after every record.
    i don't want this blank line to appear if i download it & open it in excel.
    the file record is declared as char500 type.
    Please suggest how to deal with this.
    thanks in advance.
    Regards,
    Puja.

    Hi Puja,
    Check the file in the application server whether it has any gaps between the lines.
    Or else as you said if the file looks ok in .txt format, download the file in .txt and open the same file in excel (i.e. open with excel)
    Hope this sloves your problem.
    Regards,
    SB.

  • Linking Excel Spreadsheet to Numbers

    I know how to place an Excel Spreadsheet into Numbers and subsequently save it as a Numbers file. Once the Numbers file is established is there a way to export data changes made while working in the original Spreadsheet in Excel direct to the Numbers file created without resaving a new file in Numbers ?

    Hi Lawrie,
    Numbers has a different philosophy from Excel. I find Numbers has a certain charm with its small, discrete tables on a canvas, instead of sheets that are "oceans" dotted with "islands" of data. Numbers allows data input tables, "engine room" tables where the serious number-crunching happens, and "presentation" tables for results.
    Happy Numbers, and thanks for the two gold stars.
    Regards,
    Ian

  • Does the Autosave works in Excel , if not how to make it work in my program

    I am trying to autosave my excel file , my program is dumping data every minute and I am going to run my program for about 8 hours. I wanted a method where my file would be autosave. I can do this in Excel by selecting autosave. Has anyone used it before and how good is it or should I try to save it in my program. I am using LV 6.0 and using ActiveX method for Excel. Thank you.

    You may find it easier to programmatically call the Save method on your workbook to replicate the Autosave feature in Excel.
    The problems that you are experiencing may be down to the fact that the Autosave feature is an Excel Add In module and as such needs to be treated in a slightly different manner. In order to get access to the Add In, you need to manual load/install the necessary Add In when you open the ActiveX reference to Excel.
    In Excel 97, the tree is as follows:
    Application >> AddIns (Object & Collection) >> AddIn (Object)
    From here you can Add a new AddIn but must set its Installed property to True in order for it to be "fully installed". The (VBA) help file included with your release of Excel will provide further assistance in navi
    gating through to the appropriate methods and properties and more specific information regarding the loading and proper installation of Add Ins.
    Personally, however, experience has shown that it is far simpler to just manually save the workbook using the SaveAs/Save methods as and when required.
    Jeremy

  • Opening an Excel File using Excel 97 from a JSP populated page(Urgent)

    Hello,
    I am using a JSP Page to populate data from the DB.
    When I am opening the same as an Excel File the JSP code is coming as the Excel page whenever Excel 97 is being used,but when Excel2000 or 2003 is being used then the data are coming as Excel formatted.I used the following code(JSP) :
    <head>
    <%
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition","inline; filename=ExtractData.xls");
    %>
    </head>

    I can't even tell what the difference is between "coming as the Excel page" and "coming as Excel formatted". But then when people make urgent posts they very rarely spend the time to describe the problem accurately. Why bother when it's so damn urgent?

  • Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (being PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (apparently because they are PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Hi Mary and Matthew
    You might find it helpful to "try before you buy" - there is a 30 day free trial offer for Office for Mac 2011, accessible from M's .com website.
    You may be able to use this period to open and resave your old documents in a format that enables you to switch instead to using Apple's iWorks apps moving forward.
    I initially intended to do something similar, but ended up buying Office as it provided an easier way (for me, at least) to continue working with years worth of old emails, letters, spreadsheets and other documents (from my PC days) without risking damage to their integrity, formatting, etc.

  • I created a spreadsheet using Microsoft office 2010 Excel.  When I open the sheet using Numbers, the formatting changes.  How do I fix this?

    I created a spreadsheet using Microsoft office 2010 Excel.  When I open the sheet using Numbers, the formatting changes.  How do I fix this?

    If you plan to share or work with people who regulary use MS Excel you should not try to use this in Numbers.  You will have constant problems with how each program translates the formatting.
    If you want to use Numbers, use it exclusively.  If it is for your job use the tool your company uses.

  • I cannot open files attached to an excel spreadsheet. I am using office for mac 2011. when double clicking object I only get the picture modifier windows.

    I cannot open files attached to an excel spreadsheet. I am using office for mac 2011. when double clicking object I only get the picture modifier windows.

    Preventing Microsoft Office to open recent documents at startup in Mac OS, Please see:
    http://www.frenchguys.com/wordpress/preventing-microsoft-office-open-documents-startup-mac-os-lion/
    It seems that the solution works for most people.
    In a terminal, enter the following:
     defaults write com.microsoft.Excel NSQuitAlwaysKeepsWindows -bool false

Maybe you are looking for

  • How to Create Highlighted text through the API

    I am trying to create a script that goes through a document and cut/pastes specific elements to another document in FrameMaker 7.1. So far, I can open a document and if an element is already highlighted/selected, i can cut the whole element using F_A

  • AK Loader file Upload Error

    Hi, I am facing problem at the time of patching on 11.5.10 system. ==========AD Worker ERROR================= Calling /u2/oracle/prodcomn/util/java/1.4/j2sdk1.4.2_04/bin/java ... Start of Core Modules - AK Loader file Upload Session. TUE 01 08 2013 1

  • Duplicates of Songs?

    I know I can find and delete duplicates, but the duplicates only show on my Ipod touch. Not on itunes. In my Music Libary on ITUNES, there are NO duplicates. But when I am listening to music on my IPOD, it shows a duplicate of EVERY song. WHy is this

  • Custom Audio Folder?

    Hello, I'm a journalist, and I've been using an 5th-generation iPod to transcribe my interviews (recorded with an Olympus voice recorder). I'm considering getting an iPod Touch. I see that the Touch allows creation of "custom" folders. Would it be po

  • Has anybody with experience using non apple camera kit

    I do not own ipad but intends to purchase one. I would wish a camera connection kit for iPad and am aware of one sold by Apple. I came across the following in Amazon: http://www.amazon.co.uk/connection-protectors-included--similar-MC531ZM/dp/B0040 FU