Open and dispaly XL file in IE with java

Hi all,
I need to display XL file in the browser.
Here the problem is,In JSP I am providing one link, After clicking the ling I have to create one XL file and dispaly the XL file(open and display) with out clicking another link or button.
I wrote one action to create one XL file(after clicking the link it will come to action). Here I am creating XL file and storing the file. Here I need to displai the XL file in the browser with clicking another button or link.
<b>In single click only I have to create the file and disply the XL file.</b>
waiting for solution............
Thanks & Regards
Rama Krishnam Raju

Hi,
pls see the code what I worte in jsp is
<b><% String filepath=(String)request.getAttribute("url");%>
<title>My JSP 'Dispaly.jsp' starting page</title>
<meta http-equiv="refresh" content="10;URL='<%=filepath %>' "> (here file path is "Registrationdata/Registrationdata22-7-106-1156254077328.xls")</b>
it is printing the data in browser as follows instead opening the spreadsheet.
<b>UM_User_id, UM_First_Name, UM_Middle_Name, UM_Last_Name, UM_Dept_Name, UM_City, UM_Primary_Email, UM_Created_On, No.of BPs Uploaded, UM_Status, UM_isValidDomain 1, rama , rao , n , Force ITES , hyd , [email protected] , 2006-08-11 12:47:00.0 , 2 , Pending , Yes 2, karri , rama , reddy , yahoo , sec , [email protected] , 2006-08-11 12:47:00.0 , 2 , Pending , Yes 3, rama , krishnam , raju , yahoo , hyd , [email protected] , 2006-08-11 12:47:00.0 , 0 , Pending , No 4, rakesh , rww , rak , computers , hyd , [email protected] , 2006-08-11 12:47:00.0 , 1 , Inactive , No 5, hemanth , h , n , electronics , sec , [email protected] , 2006-08-14 10:46:07.0 , 2 , Inactive , Yes 6, jagadish , mid , J , forceites , bombay , [email protected] , 2006-08-22 13:33:33.0 , 0 , Active ,No 7, XYZ , Y , Z , gmail , calcutta , [email protected] , 2006-08-17 18:26:55.0 , 0 , Inactive , No</b>
It is not opening the spreadsheet but it is printing the data.
I need to open the spreadsheet on the browser with the data.
<b>Browser settings also I checked.</b>
kindly solve my prob.
Thanks & Regards
Rama

Similar Messages

  • How to open and read binary files?

    How do I open and read Binary files?

    Did you  look on The Unarchiver's web site where it has a link to older versions? http://theunarchiver.googlecode.com/files/TheUnarchiver3.2_legacy.zip
    The best thing to do is ask your friends what programs they used to produce these files, or at least what format files they are producing.  Otherwise it's like being shown a car and given a bundle of 200 keys with no idea to which one to use, or even if any of them work with that car.
    Using The Unarchiver will likely not do anything because it too will not know what format files are involved, and they may not even been in an archived format.  If they sent you a Word file without telling you (a favorite of Windows users to do  -- it drives me crazy when they could have just sent them in plain text), The Unarchiver won't open them.  If it's a picture file then using Hexedit will just show you a bunch of unintelligible stuff as shown in an earlier post, though you may see a line of text providing a hint.
    As I said earlier, often .bin may be an executable program which needs another program to actually interpret it.  That's what Java is trying to do.  Still, it may think it can execute the file, but it is highly unlikely somebody would send you an executable program (and if they did I would not trust it).  For all you know it may be a Windows virus.

  • Open and Save Excel Files

    Hi All,
    I need code of How to open and save excel file in local system in Oracle forms.
    With Regards,
    Chandra Shekhar

    Hello Chandra,
    Webutil can be used to achieve this functionality.
    STEPS TO FOLLOW
    ================
    1. Install and configure Webutil following instructions in the webutil manual
    and the readme file.
    2. Create a form with a block Eg. DEPT
    3. Create a button, and in that button put the following code -
    DECLARE
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    args Client_OLE2.List_Type;
    cell ole2.Obj_Type;
    j INTEGER;
    k INTEGER;
    BEGIN
    application := Client_OLE2.create_obj('Excel.Application');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    workbook := Client_OLE2.Invoke_Obj(workbooks, 'Add');
    worksheets := Client_OLE2.Get_Obj_Property(workbook, 'Worksheets');
    worksheet := Client_OLE2.Invoke_Obj(worksheets, 'Add');
    go_block('dept');
    first_record;
    j:=1;
    k:=1;
    while :system.last_record = 'FALSE'
    loop
    for k in 1..3 /* DEPT has 3 columns */
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    j:=j+1;
    next_record;
    end loop;
    /* For the last record */
    for k in 1..3
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    Client_OLE2.Release_Obj(worksheet);
    Client_OLE2.Release_Obj(worksheets);
    /* Save the Excel file created */
    args := Client_OLE2.Create_Arglist;
    Client_OLE2.Add_Arg(args,'d:\test.xls');
    Client_OLE2.Invoke(workbook, 'SaveAs', args);
    Client_OLE2.Destroy_Arglist(args);
    /* release workbook */
    Client_OLE2.Release_Obj(workbook);
    Client_OLE2.Release_Obj(workbooks);
    /* Release application */
    Client_OLE2.Invoke(application, 'Quit');
    Client_OLE2.Release_Obj(application);
    END;
    4. Save the form and compile it.
    5. Run the form.
    6. Execute the query in the block.
    7. Click on the button.
    8. An excel file will be created in the d:\ directory by the name test.xls.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • How do I configure DW to open and load a file?

    I have DreamWeaver CS5 running on a Mac. Whenever I double-click to open a DreamWeaver compatible file (such as an HTML file), if DW is not already open, DW launches but does not load the file. Once DW is launced, I can double-click the file and it will load. How do I configure DW to open and load a file together?
    DW: v11 b 4993
    OS X: 10.7.4 (11E53)

    HTML files are normally configured to open in a browser. The default on a Mac is to open the file in Safari.
    You can right-click the filename in the Mac Finder, and select Open With > Dreamweaver CS5 from the context menu.
    Alternatively, select an HTML file in Mac Finder, and press Cmd+I to open the Info panel. In the Open With section, select Dreamweaver CS5 as the default program, and click the Change All button.

  • Open the same raw file in PS5 with two different White Balance settings

    I'm trying to open the same Raw File in PS5 with two different White Balance settings.  One setting "as shot" the other in "daylight", then blend them.  The tutorial I'm watching says to "stack" the images.  The tutorial shows one White Balance setting as the "Background" layer and the other setting as "Layer 1".  I don't know how to do this and the tutorial is not specific.  Can anyone either point me to a step by step instruction or offer some assistance?

    Also look at the "Snapshots" feature of Camera Raw itself.  It allows you non-destructively to keep multiple sets of settings for a single raw file.
    Learning about it far exceeds the scope of what can be done in this particular forum.  I would recommend this book as essential reading:
    http://www.amazon.com/Real-World-Camera-Adobe-Photoshop/dp/0321713095/ref=sr_1_1?ie=UTF8&q id=1313502199&sr=8-1
    Additionally, there's a dedicated Adobe Camera Raw forum:
    http://forums.adobe.com/community/cameraraw
    Wo Tai Lao Le
    我太老了

  • Outlook 2013 are not opening and showing pst files are not closed properly

    Hi
    Outlook 2007 has stopped working and showing close the program. Again,we re-started then outlook 2007 and it has opened and taken the backup of pst files in a separate hard drive.
    The pst file was repaired in scanpst.exe and again i have tried to put the pst file back in outlook 2007.It was hanging and suddenly i have uninstalled 2007 and started installing outlook 2013.
    2013 applications like word,excel,power point are opening and outlook 2013 are not able to open and showing pst files were not closed properly.
    Again i have un-installed and re-installed the outlook 2013.still we are not able to open the outlook.
    Need your support at the earliest to fix the issue.
    Thanks

    Hi,
    What's the .pst file used for? Archive? Or you set up a POP3 account and want to import the emails from the .pst file?
    Another question, you mentioned you installed Outlook 2013 and it didn't open either. Was this from the beginning right after you installed Outlook 2013, or after you did something such as create a new Profile, set up a new account and tried to import the
    .pst file?
    Kindly answer my questions so I can understand the situation better.
    I've seen some of this issue caused by the anti-malware software, check your anti-malware software to see if it's trying to interfere with Outlook - things like real time email checking can sometimes cause these kinds of problems. To troubleshoot, we can
    simply disable the anti-malware software temporarily to see the result.
    Regards,
    Melon Chen
    TechNet Community Support

  • How can I open and print PDF files?

    How can I open and print PDF files?

    With the free Reader if they are not print protected. With Acrobat otherwise.

  • I've just updated OS to 10.10.1 and Finder keeps trying to open and then closes every 2 seconds with the message Finder is not Available. If Safari is opened full window it immediately closes and will only work with window smaller than maximum.

    I've just updated OS to 10.10.1 and Finder keeps trying to open and then closes every 2 seconds with the message Finder is not Available. If Safari is opened with the window full screen it immediately closes and will only work with window smaller than maximum. Driving me mad! Any help please!!

    Hi Linc
    Thank you for your response.
    I'm a bit of an amateur so I hope below is the information you've asked for:
    Step 1
    23/11/2014 09:19:14.007 ReportCrash[294]: Saved crash report for Finder[4349] version 10.10.1 (10.10.1) to /Users/AAAA/Library/Logs/DiagnosticReports/Finder_2014-11-23-091914_BBBB-MacBoo k-Pro-2.crash
    23/11/2014 09:19:14.008 ReportCrash[294]: Removing excessive log: file:///Users/AAAA/Library/Logs/DiagnosticReports/Finder_2014-11-23-091840_BBBB -MacBook-Pro-2.crash
    23/11/2014 09:19:14.000 kernel[0]: CODE SIGNING: cs_invalid_page(0x103809000): p=4357[Finder] final status 0x3000a00, denying page sending SIGKILL
    23/11/2014 09:19:14.000 kernel[0]: CODE SIGNING: process 4357[Finder]: rejecting invalid page at address 0x103809000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    23/11/2014 09:19:14.454 com.apple.xpc.launchd[1]: (com.apple.Finder[4357]) Binary is improperly signed.
    23/11/2014 09:19:14.454 com.apple.xpc.launchd[1]: (com.apple.Finder) Service only ran for 0 seconds. Pushing respawn out by 1 seconds.
    23/11/2014 09:19:15.584 Finder[4359]: assertion failed: 14B25: libxpc.dylib + 97940 [9437C02E-A07B-38C8-91CB-299FAA63083D]: 0x89
    23/11/2014 09:19:15.000 kernel[0]: CODE SIGNING: cs_invalid_page(0x10bfbf000): p=4359[Finder] final status 0x3000a00, denying page sending SIGKILL
    23/11/2014 09:19:15.000 kernel[0]: CODE SIGNING: process 4359[Finder]: rejecting invalid page at address 0x10bfbf000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    Step 2
    Process:               Finder [4626]
    Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    Identifier:            com.apple.finder
    Build Info: Finder_FE-932001003000000~1
    Responsible:           Finder [4626]
    PlugIn Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    PlugIn Identifier:       com.apple.finder
    -0 sec                         CODE SIGNING: cs_invalid_page(0x10c9a5000): p=4626[Finder] final status 0x3000a00, denying page sending SIGKILL
    -0 sec                         CODE SIGNING: process 4626[Finder]: rejecting invalid page at address 0x10c9a5000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    -2 sec                         CODE SIGNING: cs_invalid_page(0x10c5b3000): p=4624[Finder] final status 0x3000a00, denying page sending SIGKILL
    -2 sec                         CODE SIGNING: process 4624[Finder]: rejecting invalid page at address 0x10c5b3000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    -3 sec                         CODE SIGNING: cs_invalid_page(0x10f4bd000): p=4622[Finder] final status 0x3000a00, denying page sending SIGKILL
    -3 sec                         CODE SIGNING: process 4622[Finder]: rejecting invalid page at address 0x10f4bd000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    -5 sec                         CODE SIGNING: cs_invalid_page(0x105ecf000): p=4620[Finder] final status 0x3000a00, denying page sending SIGKILL
    -5 sec                         CODE SIGNING: process 4620[Finder]: rejecting invalid page at address 0x105ecf000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    -7 sec                         CODE SIGNING: cs_invalid_page(0x1012cd000): p=4617[Finder] final status 0x3000a00, denying page sending SIGKILL
    -7 sec                         CODE SIGNING: process 4617[Finder]: rejecting invalid page at address 0x1012cd000 from offset 0x3f000 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:1 tainted:1 wpmapped:0 slid:0)
    --> __TEXT 000000010c966000-000000010ce55000 [ 5052K] r-x/rwx SM=COW /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
        __DATA 000000010ce55000-000000010cf53000 [ 1016K] rw-/rwx SM=COW /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    0   com.apple.finder                                 0x000000010c9a521f 0x10c966000 + 258591
    10  com.apple.finder                               0x000000010c9977b5 0x10c966000 + 202677
    11  com.apple.finder                               0x000000010c988154 0x10c966000 + 139604
    12  com.apple.finder                               0x000000010c987e15 0x10c966000 + 138773
    13  com.apple.finder                               0x000000010c987d35 0x10c966000 + 138549
    14  com.apple.finder                               0x000000010c987cfd 0x10c966000 + 138493
    28  com.apple.finder                               0x000000010c96b960 0x10c966000 + 22880
    1   com.apple.finder                                 0x000000010c98a69d 0x10c966000 + 149149
    2   com.apple.finder                                 0x000000010c98aba7 0x10c966000 + 150439
    3   com.apple.finder                                 0x000000010c9795d2 0x10c966000 + 79314
    4   com.apple.finder                                 0x000000010c98aa0b 0x10c966000 + 150027
    5   com.apple.finder                                 0x000000010c98a952 0x10c966000 + 149842
    6   com.apple.finder                                 0x000000010c98a78a 0x10c966000 + 149386
    7   com.apple.finder                                 0x000000010c979496 0x10c966000 + 78998
    8   com.apple.finder                                 0x000000010c98a548 0x10c966000 + 148808
    9   com.apple.finder                                 0x000000010c98a410 0x10c966000 + 148496
    10  com.apple.finder                               0x000000010c983df6 0x10c966000 + 122358
           0x10c966000 -        0x10ce54ffb  com.apple.finder (10.10.1 - 10.10.1) <33C3024A-4A16-3485-B2B1-89FA33B9558A> /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    Many thanks
    David

  • Which lib to open and view office file on browser

    Hi all,
    when I receive a stream of file from server. How I can open and view this file on browser?
    My suggest: catch a stream and use library to open office file on browser, but I don't know which lib to do this.
    Thanks

    I'm confused, you're coding for the server-side, with JSP/servlets aren't you? So how can you intercept the stream at the browser? That'll be beyond your code.
    And anyway, if you set the MIME types and set the content for the response, the browser itself will decide and prompt the user for handling the file.
    If on the other hand, you want to open a file on the server and send the contents of that to the browser, you can look into Apache POI (http://poi.apache.org/) for handling Excel, Word and PowerPoint documents.

  • Open and print multiple files from the Finder all at once.

    I'm trying to research how to do this. In OS9 you used to be able to hi-lite multiple files (Word files for example) and just hit Command+P. This would automatically open all of the files AND print them.
    I can't seem to do this in my OS X. Or can I? I can hi-lite and go to File/Print, but the computer is only opening but not printing.
    Any suggestions??
    iMac   Mac OS X (10.4.8)  

    I don't know how to both "open and print" multiple files in one step. The ⌘O combination of course will open multiple items. The items remain selected so switching back to the "Finder" and dragging multiple icons onto the icon for "/Applications" > "Utilities" > "Printer Setup Utility.app" seems to cause them all to be printed to the default printer.
    Alternatively, a user's "~/Library/Printers" folder contains printer icons -- I'm not sure what they are exactly, but they represent the printers set up for that account. They function pretty much like the pre-OS X "Desktop Printer" icons so dragging and dropping multiple files onto them should cause them to be printed. It may even be possible to create aliases to them on the "Desktop" to recreate "Desktop Printer" functionality. But again, this won't open the files into their applications.

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Why can't I open and retrieve my files from iPhoto and my address book after importing the files from my Power mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    Why can't I open and retrieve my files from iPhoto and my Address Book after importing the files from my Power Mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    For your addressbook, export the files to vCard on the PowerMac, then bring them over to your Mac Pro. For your iPhoto, copy the Users -> yourname -> Pictures folder to your Desktop on the Mac Pro, and open iPhoto on the Mac Pro holding the command and option keys.  Select the library file from that Pictures folder and open it.  It should import all the pictures into iPhoto as part of the rebuild process.  Other PowerPC to Intel migration issues are covered here: https://discussions.apple.com/docs/DOC-2295

  • Opening and editing .pub files

    Can anybody tell me if there is any way to open and edit .pub files without converting them into PDF's???

    Hi, not that I can find, but besides PDF, perhaps as MS .doc using this method?
    http://www.maketecheasier.com/open-mark-up-pub-file-on-mac/2011/04/11

  • How can I open and listen to the PDF documents with audio in my iPad?

    How can I open and listen to the PDF documents with audio in my iPad?

    You need to use a PDF reader that supports multimedia. Adobe Reader 10.3 does not. Adobe has not stated whether it will support multimedia in the future.
    In the meantime, you could buy an application that does like PDF Expert. Read about it here:
    Finding the Best Tablet PDF Reader

  • Can you use PDF Pack to open and read PDF files?

    Can you use PDF Pack to open and read PDF files?

    Hi Keith,
    PDF Pack is a conversion tool which would convert PDF to different formats and vice versa. It cannot be used for reading PDFs.
    If you want to open and read PDF file you can use Adobe Reader.
    You can download Adobe Reader from below mentioned link.
    Adobe Reader
    let me know if you have any other questions.
    Regards,
    ~Pranav

Maybe you are looking for