Display an Excel worksheet in the browser

Hi there,
I would like to know if it is possible to display an Excel worksheet in an APEX page.
Thanks...

I would like to render the worksheet in regionYou can put the sheet in a region by making the region an iframe. Create a HTML region with this source:
<iframe src="http://www.whitehouse.gov/sites/default/files/omb/budget/fy2012/assets/27_14.xls" width="100%" height="600"></iframe>(change the URL to point to your file on your server)
This works for IE only. Maybe there is a Excel plugin for Firefox.

Similar Messages

  • Best way to display a fillable pdf in the browser?

    I am currently using the code below( .net using C#)  to display my pdf which is in a memory stream to the browser:
                    this.Response.Buffer = false;
                    this.Response.Clear();
                    this.Response.ClearContent();
                    this.Response.ClearHeaders();
                    this.Response.ContentType = "application/pdf";
                    this.Response.BinaryWrite(byteArray);
                    this.Response.End();
    What happens is I am prompted to open it, and then the pdf is displayed in the browser, however when the user makes changes to the information and then closes the browser, all the information is lost if the user did not save it.
    If I add the following line of code in:
    this.Response.AddHeader("Content-Disposition", "attachment; filename=" + DocumentToView);
    I am then prompted to open and it opens in adobe and if I make changes and close the application, it prompts me to save my changes.  However, I still have a blank page being displayed that was processing the initial display of the pdf.
    My questions are the following:
    1. Is there a way to display in the browser and prompt the user to save changes when they close the browser?
    2. Is there a way to get the pdf to display in adobe without displaying the blank page or is there a way to close that page after the document has been loaded?
    Thanks
    Joe

    1. Is there a way to display in the browser and prompt the user to save changes when they close the browser?
    That would depend on EVERY last browser having identical settings for handling PDFs... not likely, or even probable.
    2. Is there a way to get the pdf to display in adobe without displaying the blank page or is there a way to close that page after the document has been loaded?
    Without the user saving it... I don't think so.
    From a web design standpoint, forcing content or settings on an end viewer is a shoddy practice. If someone WANTS to save the PDF, they will in most cases. Not being able to close the window and/or leave the page containing the PDF without saving it first will ensure more "one time" visitors to the page in question than you hope for. Too many people will misinterpret that as an attempt at loading malware. Correct or not, that will be their perception.

  • How do I print an excel worksheet so the rows have contrasting shades making it easy to read data across the page?

    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?

    sophia beth wrote:
    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?
    Not sure if it's any better in the version you have, but in earlier versions, you would have to manually select alternating rows using cmd-click in the row numbers and then fill the cells with the lightest possible shade in the fill palette.  Again, in an earlier version, it is possible to use the format painter (use your Excel help for details) to select several rows formatted with the shading and paint that format to an equivalent number of rows elsewhere.

  • How to display a RTF file in the browser?

    Hi there,
    sorry 'bout my bad English.
    My jsp page have to get a rtf file and show it. Just setting the ContentPage to text/rtf, is it a solution?
    If not just that, what code I have to write? Let me know!
    Thanks

    I'm not sure if this can be done through JSP. You may need to write a servlet and set the mime type of the response to application/rtf. Then output the rtf text to the browser. Please let me know if you get this to work - I'm having a similar problem. Thanks.

  • IE Browser not able to display a PDF file within the Browser window ...

    Hello acrobat experts!
    I'm now writing a plugin for the acrobat. According to my customer requirements, the pdf file is expected to be displayed within the MS IE
    browser widows. It worked within adobe Reader and Acrobat 7.0.x.
    Now I wanted to test my plugin against version adobe Reader and Acrobat
    8.0, 8.1.0, 8.1.1. Unfortunately, I got a strange behavior: pdf files are
    being diplayed in seperate windows, i.e. the IE browser window is empty
    and white blanked!
    - (Un)check "Display PDF in browser" option and close the window
    didn't help!
    - I tried also to upgrade gradually and after each upgrade checked if the
    problem persists --> I had the same behavoir after each update:
    7.0.5 -> 8.0; 8.0 --> 8.1.0; 8.1.0 --> 8.1.1
    - In some google - forums I found out that the following DLL's may be
    missing:
    Acropdf.dll, Acroiehelper.dll,Gbdetect.dll and Pdfshell.dll
    i got these dll's, put them into the activeX directory, but still I
    have the same problem
    You guys, do you have useful links / tips for me? Is this a known bug
    in the acrobat / Reader 8.0, 8.1.0, 8.1.1?
    By the it works fine within firefox!
    Further info about user SW versions:
    IE browser version 6.0 SP2, Windows XP SP2
    Thanks a lot in advance for your help
    Caleb

    thanks for the quick feedback-
    no, because my customer is using the IE 6. According to the system
    requirements all these Acrobat/Reader versions should also run
    properly under IE 6 http://www.adobe.com/support/downloads/detail.jsp?ftpID=3796
    I have a look in IE >> manage- add-ons and got the following Add-ons
    for adobe
    - Adobe PDF
    - Adobe PDF Conversion Tool helper
    both are enabled!
    Do I need more?
    can u pls check, if u have the following ddl's in the adobe home dir:
    Acropdf.dll, Acroiehelper.dll,Gbdetect.dll and Pdfshell.dll
    Thanks
    Caleb

  • Problem in displaying a selected image from the browser

    How come I always get the same image (the last) when I select an image from a browser. I used IMAQ Browser Forcus (with mouse click)to send an index to Index Array, then with IMAQ WindDraw to display the image,but it is always the same image (the last) that shows in the new window.

    Try this VI (It's from "Image Acquisition and Processing with LabVIEW" - see for more details...
    cheers,
    Christopher
    Christopher G. Relf
    Certified LabVIEW Developer
    [email protected]
    International Voicemail & Fax: +61 2 8080 8132
    Australian Voicemail & Fax: (02) 8080 8132
    EULA
    1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
    2) This email has NOT been scanned for virii - attached file(s), if any, are provided as is. By copying, detaching and/or opening attached file
    s, you agree to indemnify the sender of such responsibility.
    3) Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.
    >
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
    Attachments:
    Image_Browser-Selector_Example.llb ‏107 KB

  • Problem displaying an Excel File: Please Help

    Hello,
    I spent 3 hours this morning reading the forum on how to display an Excel file in the browser using JSP and I apologize in advance if the answer is in the forum.
    I cut and paste many examples: My goal is to display an excel file on the browser.
    Below is the code but the result is a disaster (please se after the code the result).
    My question is how can I display an excel file using the browser. What's wrong with my code. Apparently it worked for many people on the forum.
    Please help. I must do that by tomorrow and I had spent already so many hours.
    THANK YOU SO MUCH IN ADVANCE.
    So far the forum had helped me a lot.
    <%@ page language="java" import="java.io.*" %>
    <%
    String myfile = new String("/temp/temp.xls");
    File fileName = new File(myfile);
    // Setup our streams
    FileInputStream fis = null;
    ServletOutputStream out1 = response.getOutputStream();
    // Set content type and other response header
    response.setContentType(getServletContext().getMimeType(fileName.getName()));
    //response.setContentType("application/excel-document");
    //response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition","attachment; filename=\"" + fileName.getName());
    response.setContentLength((int) fileName.length());
    // Read in the file from the correct place and stream it to the user
    int iRead;
    FileInputStream stream = null;
    try
    stream = new FileInputStream(myfile);
    while ((iRead = stream.read()) != -1)
    out1.write(iRead);
    out1.flush();
    } catch (IOException i) {}
    %>
    RESULT:
    ������>�� �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ���@����\p Yahel Malkin B�a�=���=��@�7 �������Oh��+'��0p08 P \h� Yahel Malkinn@�|�$�+�@�|�$�+�������.��+,��0�HP X`hp x ��� competitivePricingReportSave Worksheets���� ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Root Entry�������� �F��T�+�����Workbook������������SummaryInformation(����DocumentSummaryInformation8������������

    For those who are having the same problem than me here the solution:
    In fact I was only interested in saving the file
    <%@ page language="java" import="java.io.*" %>
    <%
    String myfile = new String("/temp/temp.csv");
    response.setContentType ("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment; filename=\""+myfile+"\"");
    int iRead;
    // Setup our streams
    FileInputStream fis = null;
    ServletOutputStream out1 = response.getOutputStream();
    FileInputStream stream = null;
    try
    stream = new FileInputStream(myfile);
    while ((iRead = stream.read()) != -1) {
    out1.write(iRead);
    out1.flush();
    } catch (IOException i) {}
    %>

  • I've been using FCP 7 on my iMac for quite some time with great success.  Lately I created a new project and the browser window does not format properly (it's O.K. for previously created projects). The effects window is also not displaying properly.

    Help! My browser window is suddenly not formatting properly. (losing browser formatting, glitch, bug)  I'm using FCP 7 on an iMac with OS X 10.8.5 and have been successfully doing so for a couple of years.  I fear my Final Cut Pro is corrupt and I have to re-install. Anyone ever see this problem? Old projects display and behave fine in the browser, but any new project I create, totally loses the formatting in the browser and the browser also does not display the "effects" window properly anymore. (see below)

    YOU ARE A LIFE SAVER!  I reinstalled the program and everything. THANK YOU! THANK YOU! MY HERO!!!

  • How to edit a spreadsheet (excel file) in the portal?

    Hello experts,
    at the moment i am working on the requirement to edit a spreadsheet in the portal.
    Until now i was able to display an excel file with the help of the 'KM Document iView (without content filter)'.
    Everything is displayed alright and i can perform changes in the spreadsheet.
    BUT: There is no such thing like a Save-Button or something like that. Does the SAP NW Portal already provide a solution for this requirement? Or will i have to develop an own application?
    I have already searched the forums and sap help, but i haven't found any solution. I can't imagine that such an easy requirement would need coding.
    Best Regards
    Marcus
    (Po*nts will be rewarded for good answers)

    Hi Marcus,
    I do not think you can do the task the way you want. You will have to look for some workaround that may be download the file, edit it and then upload it back. You will have to code in your application for that. If you want to do this way I can help you further to edit and save the excel.
    Regards.
    Rajat

  • Opening Excel file in User browser window

    Hi,
    My application generates Excel file from the rowset and stores on the server automatically when the user clicks a button, but I want the Excel file to be downloadable by the user either by opening the Excel file in the browser or by prompting the user to save the Excel file on the users PC.
    Any help will be greatly appreciated.
    Regards
    kush

    Hi Runa,
    Thanks for getting back to me. I have been through the already but that doesn't answer my question.
    Here is what i did, it might be rude but easy,
    public String generateExcel_action() {
    WorkbookSettings ws = new WorkbookSettings();
    workbook = jxl.Workbook.createWorkbook(new File("test.xls"));
    WritableSheet s1 = workbook.createSheet("Number Formats", 0);
    writeNumberFormatSheet(s1);
    workbook.setColourRGB(jxl.format.Colour.LIME, 255, 0, 0);
    workbook.write();
    workbook.close();
    }catch (Exception e){
    log("Exception while generating Excel file" + e);
    return null;
    * Writes out a sheet containing the various numerical formats
    * @param s
    public void writeNumberFormatSheet(WritableSheet s) throws WriteException
    try{
    WritableCellFormat wrappedText = new WritableCellFormat
    (jxl.write.WritableWorkbook.ARIAL_10_PT);
    wrappedText.setWrap(true);
    WritableFont wf = new WritableFont(jxl.write.WritableFont.ARIAL, 12);
    wf.setItalic(true);
    WritableCellFormat wcf = new WritableCellFormat(wf);
    CellView cv = new CellView();
    cv.setSize(25 * 256);
    cv.setFormat(wcf);
    s.setColumnView(0, cv);
    s.setColumnView(1, cv);
    s.setColumnView(2, cv);
    s.setColumnView(3, cv);
    WritableCellFormat horizontal = new WritableCellFormat();
    horizontal.setOrientation(jxl.format.Orientation.HORIZONTAL);
    // column headings
    Label l = new Label(0,0,"National Fault Number", horizontal);
    s.addCell(l);
    l = new Label(1,0,"Fault Title", horizontal);
    s.addCell(l);
    l = new Label(2,0,"Company Name", horizontal);
    s.addCell(l);
    l = new Label(3,0,"System", horizontal);
    s.addCell(l);
    int row =1;
    national_faultsRowSet.setCommand("SELECT * from national_faults");
    national_faultsRowSet.execute();
    while(national_faultsRowSet.next()){
    l = new Label(0,row,national_faultsRowSet.getString("national_fault_number"); , wrappedText);
    s.addCell(l);
    l = new Label(1,row,national_faultsRowSet.getString("fault_title"), wrappedText);
    s.addCell(l);
    l = new Label(2,row,national_faultsRowSet.getString("company_details.company_name"), wrappedText);
    s.addCell(l);
    l = new Label(3,row,national_faultsRowSet.getString("system.system");, wrappedText);
    s.addCell(l);
    row++;
    } catch (Exception e){
    log("Exception in writing EXcel " +e);
    test.xls is generated and stored in /install-dir/SunAppServer8/domains/creator/config, but I want the test.xls file either open in browser or prompt the user to save on his PC.
    I tried to get the data from dataTableModel's cache, for some reason it always returns null, any most obvious reason????
    Cheers
    kush

  • How do I hide the stacks badge overlays on images in the browser?

    In View > Metadata Display > Show metadata    is off, but the badge (with the number in the stack) is still visible.

    On
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=11%26se ction=9%26tasks=true
    is explained how to show them;
    To display badge overlays on images in the Browser in grid view 
    Do one of the following:The Browser & Viewer Metadata dialog appears.
    Choose View > Metadata Display > Customize (or press Command-J).
    In the tool strip, choose Edit from the Metadata Overlays pop-up menu.
    Choose a Browser Grid View metadata overlay view from the View pop-up menu.
    In the Metadata Fields column, click the Aperture disclosure triangle to reveal the metadata fields below it, then select the Badges checkbox.
    Click OK.
    Make sure both Show Metadata and the metadata overlay view you just modified are selected for the Browser in the Metadata Overlays pop-up menu in the tool strip.
    Badge overlays are now visible in the Browser.
    You can turn off the display of badge overlays in the Browser by turning off the display of metadata. For more information, see Turning the Display of Metadata On or Off.
    But I don't understand;      In the tool strip, choose Edit from the Metadata Overlays pop-up menu.

  • Displaying a tiff image in a browser.

    Hi I need to display a tiff image in the browser which does not have a tiff plugin. I guess I have to convert the tiff to jpeg on the fly and write it in the output stream. Has anyone worked on this or knows any other way. Please not I dont want to create an intermediate jpeg file.

    Thanks for your help. I am having one problem though. The tiff file is not being read. The ImageIO.read(file); is returning null. I guess I am using the wrong ImageIO class.( javax.imageio.ImageIO;). I am pasting the code below. See if you can find out the bug.
    package tiffToJpg;
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.servlet.GenericServlet;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    * @author Deepak_Mulchandani
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class TiffToJpg extends GenericServlet
         public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
              File file=new File("Demo1.jpg");
         ServletOutputStream servletOuputStream=response.getOutputStream();
                        BufferedImage image = ImageIO.read(file);
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(baos);
                        encoder.encode(image);
                   servletOuputStream.write(baos.toByteArray());
    }

  • Allow SharePoint 2013 documents to be viewed only in the browser.

    I have a SharePoint 2013 server and have no Office Web Apps installed. I am able to view Excel documents in the browser.
    Because of excel service running. However, I couldn't find a way to view Word or PowerPoint PDF and Auto Cad File (.dwg).
    I have to achieve this functionality without Office web apps Installation.
    Please, Provide some workaround.
    Thanks,
    Siddheshwar

    That's going to take OWA or something similar. Autocad will be even more tricky than word/pdf as it's not going to be managed by OWA. You'd need to find a third party tool that can render those in the browser, i haven't encountered anything like that myself.

  • Excel Output is being displayed as HTML in the browser

    Hi All,
    I am using PeopleSoft XML Publisher 5.6.2 to generate an Excel report using RTF template. The report runs successfully.
    However, when I click the Output file link in the View Log page of process scheduler, the file is being displayed as a HTML page, though the extension of the file is .xls.
    Also when I try to save the file by using 'Save Taget as' option, the browser prompts me to save the file as 'mhtm' file and not 'xls' file.
    The following is an extract from the output file.
    <html>
    <!-- Generated by Oracle XML Publisher 5.6.2 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>IM Top 10 Surplus &amp; Deficit Locations</title>
    After doing some research on Internet, I found the following blog post(dated back in 2008) to describe my situation and a workaround to the problem.
    http://peoplesofttipster.com/2008/04/16/xls-xmlp-output-opening-in-browser-not-excel/
    http://peoplesofttipster.com/2008/04/18/xls-xmlp-output-opens-in-browser-workaround/
    Workaround described in the above blog post is to update the charset to us-ascii replacing UTF-8. This seems to work. But with limited file processing capabilities of peoplecode, this workaround is not a simple solution.
    I also verified the mime-type mapping in the web.xml file in the webserver. Please find below the .xls mime-type mapping in the web.xml file.
    <mime-mapping> <extension> xls </extension> <mime-type> application/vnd.ms-excel</mime-type></mime-mapping>
    Question:
    1.How do I force the browser to open the excel output file using either Excel plugin or Excel Application instead of displaying it as HTML page?
    2.If not the above, how can I force the system to promt the user to save the file as Excel file instead of mhtml?
    Additional details :
    work enivronment
    PeopleSoft FSCM 8.9
    PeopleTools 8.48.17
    Oracle 10g
    Windows NT
    Any help would be greatly appreciated.
    Thanks & Regards,
    Vamsi Krishna

    Please try this by Open windows explorer, Click Tools -> Folder Options ->,Click on File Types and Select XLS from the list, Click Advanced, select "Open" and Make sure the “Browse in same window” is not selected.
    Hope this helps,
    Ramesh

  • Oracle reports to display PDF/Excel files stored in the Database

    can we use Oracle reports to view/display PDF/Excel files stored in the Database? Thanks Lalitha

    A document stored in the database can be easily retrieved in or via the browser using mod_plsql. Simplified:
    select content, mime_type
    into v_blob, v_mime_type
    from ...
    owa_util.mime_header(nvl(v_mimetype,'application/octet'),false);
    htp.p('Content-length: ' || dbms_lob.getlength(v_blob));
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);So, the link in your report should point to this database procedure.
    Edited by: InoL on Mar 1, 2011 4:17 PM

Maybe you are looking for