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

Similar Messages

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • Icons for apps are not being displayed when I open the App store, just getting gray color boxes

    Icons for apps are not being displayed when I open the App store, just getting gray color boxes

    Did you update your operating system?  If so, did it solve the problem?  I have not updated my OS because so many people complained that the newer Os's had problems.

  • How to display "Image" object in the browser?

    can anyone please tell me how can i display "Image" object in the browser?
    I have an image object that i retrieved from AS400 BLOB object by using toolbox.jar (for as400 access for java including all necessary classes like jdbc driver, security etc.).
    i want to display this object in the browser so i will be able to web-enable my BLOB objects stored on as400.thx...

    In your HTML:
    <img src="ImageServlet">
    In ImageServlet:
    Make calls to DB to get your image as byte array and store it in:
    byte[] buffer = new byte[imageSize];
    ServletOutputStream out = response.getOutputStream();
    for(int i = 0; i < imageSize; i++)
    out.write(buffer, i, 1);
    out.close();

  • Cookies are not being cleared when I close the browser although the option is set. Any suggestions?

    Under Options; Privacy I have Clear history when Firefox closes ticked and within the Settings for Clearing History I have Cookies ticked. Cookies are not being cleared when I close the browser. Windows 7, SP1 x64

    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • Editing HTML through the browser itself

    Today, I went to JotSpot and reached the following page saying that Safari is not supported [from http://feedback.jot.com/KnownIssues/]:
    Mac Support
    <item>1. Mac support: WYSIWYG will work with the Firefox browser (free, open-source), but not with Safari. Safari does not allow you to edit HTML through the browser itself. Without this capability, we cannot offer WYSIWYG mode.
    Any idea why Apple did not implement this feature? Is it in the roadmap?
    Thanks!
    - Mazzaroth

    I do not know how JotSpot implements online editing, but I have been on sites using Safari which have allowed me to have an html editor with formatting buttons and a choice between wysiwyg and html editors.
    You can always send in a bug report using "Report Bugs to Apple" under the Safari menu.
    And for now, if you want to use JotSpot you can use Firefox.

  • Hello! I am writing to inform you that about that you have a problem displaying your website in the browser.

    Hello! I am writing to inform you that about that you have a problem displaying your website in the browser.
    In Yandex browser. I decided to tell you, because the site is not displayed correctly. As in the screenshot.

    apart from the fact there's no way I could have answered your question confidently, I was also not able to supply my non-answer within your very tight time constraints.
    what happened? how'd you get on?

  • Report painter report in portal - Excel output in SAP GUI for HTML

    Dear sirs,
    I need your expertize. I would like to let my users display (Excel in place)/ save the result of my report painter reports into MS Excel. I have found notes 499262 a 314568, but didn´t understand the message (or there is no message:)). Does that mean I cannot use Excel in place together with Report painter and SAP GUI for HTML?
    Second question: is there a place (user exit in generated code? I don´t even know what I am looking for) to get the data provided by the report painter engine and send the retrieved data to some custom function (to be able to call the Adobe form, to save it as a text file or any option how to manipulate the resulting data...?).
    thank you for your time and effort,
    regards Otto

    Hi Otto,
    You can send print the report to the spool and then use RSTXPDFT4 program to convert this spool to PDF file. Alternatively, you can export the spool to spreadsheet or ASCII file via SP01 transaction.
    Additinally, I'm not aware of unability to use Excel output with SAP GUI interface.
    Regards,
    Eli

  • Prevent "We're opening your workbook in Microsof Excel" message from being displayed

    Hi all,
    I have multiple environments with SharePoint solutions installed on them. Almost all of them are working fine except one that has an issue and don't know how to solve it.
    Each time I open an Excel file in Excel Services and then choose to "Edit in Excel", the following message is being displayed and Excel Services do no close automatically as it does on the other environments.
    How can I fix this?
    Thanks,
    Florin

    Did you check this 
    https://social.technet.microsoft.com/Forums/en-US/590617de-629f-413b-8c11-f3cc79e27e7a/excel-2013-error-on-open-were-sorry-but-excel-has-run-into-an-error-that-is-preventing-it-from?forum=officeitpro ?
    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.

  • Opening up an Excel output takes a lot of time whenever the file size is la

    Hi All,
    We have some BI Pub reports with excel output format. These files have records in the order of thousands. The file sizes are > 2MB. Its taking a lot of time to open such files. Does anyone have any idea how can we get around this problem ??
    Thanks in advacne,
    Venkatesh N

    Another point is that BIP doesn't create a native/binary Excel file but an XML output. When you open this XML once and save it again as *.XLS it's size will decrease significantly and Excel will open it much faster.
    This applies to Excel 2000 - 2003, I don't know how it works with Office 2007.
    Regards,
    Stefan

  • JSP generates html but the browser displays the html source

    Hi,
    I have iWS 4.1.3 on my Win2K Pro OS, as well as iAS 6.0. The documentation
    says that JSP is enabled by default. I put a simple .jsp file in my document
    root, and when I enter the url for the .jsp file, the browser displays the
    html source as opposed to rendering the html tags.
    I use IE 5.5 and Netscape 6.0, 4.77.
    Has anyone encountered this? What do I need to do to get JSP to work
    correctly.
    Thank you.
    Sincerely,
    Kalpana

    Hi,
    I too have the same setup & did not do anything additional to get it
    working, but it works fine for me. May be the request is not reaching the
    webserver or try to disable and then enable the .JSP option, it may work. I
    believe iWS newsgroup will be able to help you in this regard.
    Regards
    Raj
    Kalpana Nitzsche wrote:
    Hi,
    I have iWS 4.1.3 on my Win2K Pro OS, as well as iAS 6.0. The documentation
    says that JSP is enabled by default. I put a simple .jsp file in my document
    root, and when I enter the url for the .jsp file, the browser displays the
    html source as opposed to rendering the html tags.
    I use IE 5.5 and Netscape 6.0, 4.77.
    Has anyone encountered this? What do I need to do to get JSP to work
    correctly.
    Thank you.
    Sincerely,
    Kalpana

  • Problem with video skin doesn't display on html although the video played normally.

    I used "Adobe media encoder" to convert a video file to "FLV" format, so that I can import to "Adobe Flash CS5" . I have chosen all the component buttons and tried to "publish preview" on to html but the video skin doesn't display although the video does. Two swf file skin file + fla + swf movie + html are all in the same folder.
    Please help....I have tried to fix this problem for 10 hours already and still have no luck, tried to search online for solution but counldn't find anything.
    Message was edited by: adobe_user_2

    I already gave you the answer to your problem and now here is
    the proof:
    http://www.johnkalnin.com/test/dancin/dancin.swf
    Notice the skin?
    http://www.johnkalnin.com/test/dancin.html
    Notice the lack of a skin?
    This is because the skin is in the wrong directroy. If I put
    the skin in the same folder as the HTML file, not the swf, it
    works. So if you would do what I said a few posts ago and make this
    work:
    http://www.mikelrouse.com/SteelExternalAll.swf
    Then your problem would be solved. The problem is that the
    skin path must be defined by the html file calling the swf file,
    not the location of the swf file.
    PS - My daughter is too cute!

  • Problem in displaying Japanese characters on the browser.

    Hi Friends,
    Hope one of you could help me in this!!
    We are using SHIFT_JIS character encoding in our jsps to display Japanese characters.
    <%@ page contentType="text/html; charset=SHIFT_JIS" %>
    Is there any other configuration required on server side to let the Japanese characters being displayed? Because what I am getting on screen is quite annoying. Well something like below.
    ?V?M???????�
    Even though my knowledge in Japs isn't too good :-)) I can understand that these are not Japanese. I believe I am missing something in terms of server side configuration, Can anybody point that out. (Maybe some of the Japanese developers in here).
    This could not be a client side issue, since from the same machine I can access other Japanese sites and they display properly. Let me know if anybody can help.
    I am running these in WAS 5.0
    Thanks,
    King

    Your text in the JSP should be UTF-8 nevertheless - as would be ideal
    for internationalization. Java comes with a command-line conversion tool
    native2ascii which is bidirectional.
    As non-Japanese I am not certain whether "SJIS" might not be better (there
    are some name variations in java).
    The HTML generation will translate these characters to SHIFT_JIS in your case.
    Where the target encoding cannot handle the intended character it receives a
    question mark - hat you saw.
    Furthermore you need a proper font in HTML and under Windows (window title).
    Your webserver should have east-asian support. Though Japanese (and English)
    are standard, I, as non-japanese am not certain about SHIFT_JIS.
    Also there is some freedom in choice for a japanese encoding.

  • Correct display of characters in the Browser - Pls Help - Urgent

    Hi,
    We have a java application running on solaris 8 connected to oracle 8.1.6 database. The database characterset has been changed to WE8ISO8859P15 to support Western European Characters and the Euro symbol.
    The problem we are facing is, when the euro symbol (Alt + 0128) is entered thru the HTML form and then retrieved from the database and again displayed on the HTML form, it shows as inverted question mark or some other character.
    If any one can tell us exactly the steps to follow overcome this problem, it would be of great help. What settings have to be changed in the webserver, database and the client side so that there is proper data conversion.
    Immediate response is apprecited.
    Thanks

    Couple of samples to try:
    1)
    <%@ page contentType="text/html;charset=ISO-8859-15" %>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    String charset = response.getCharacterEncoding();
    %>
    <BR> encoding = <%= charset %> <BR>
    <%
    String nameValue = request.getParameter("euro");
    String euroVal = "\u20ac";
    if (nameValue == null || nameValue.length() == 0) { %>
    <FORM METHOD="GET">
    Please input your name: <INPUT TYPE="TEXT" NAME="euro" value="<%=euroVal%>" size=20> <BR>
    <INPUT TYPE="SUBMIT">
    </FORM>
    <% }
    else
    nameValue= new String(nameValue.getBytes("ISO8859_1"), charset); %>
    <H1> Hello, <%= nameValue %> </H1>
    <%
    //insert nameValue into database
    %>
    </BODY>
    </HTML>
    2)
    <%@ page contentType="text/html;charset=ISO-8859-15" %>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    String charset = response.getCharacterEncoding();
    request.setCharacterEncoding(charset);
    %>
    <BR> encoding = <%= charset %> <BR>
    <%
    String nameValue = request.getParameter("euro");
    String euroVal = "\u20ac";
    if (nameValue == null || nameValue.length() == 0) { %>
    <FORM METHOD="GET">
    Please input your name: <INPUT TYPE="TEXT" NAME="euro" value="<%=euroVal%>" size=20> <BR>
    <INPUT TYPE="SUBMIT">
    </FORM>
    <% }
    else
    %>
    <H1> Hello, <%= nameValue %> </H1>
    <%
    //insert nameValue into database
    %>
    </BODY>
    </HTML>We have tired your code and here are the answers to your questions:
    1. Does the euro example work in your environment?No it is not working.we could not run the second example because'
    we don't have a "request.setCharacterEncoding(charset)" method.
    we are using servlet 2.2 api
    2. Is the HTML form a JSP/Servlet or a HTML calling CGI?we are having HTML/JSP form calling a servlet.
    the results and forms are always JSP.
    3. Try using a HTTP GET in the form and observe the URL on
    the browser. Does it show the parameter as:
    http://host:port/euro01.jsp?euro=%A4
    Euro symbol's code point is A4 in ISO-8859-15. We'd like to make
    sure it is not corrupted when it is sent to the server.your previous example shows it as %A4 but it is not inserting correctly
    in the database.The ascii value of the inserted value is 191 but we guess the correct
    ascii value is 164.
    4. After insertion, check the value on the database server.
    Assume you insert the data in the following table:
    create table tab01 (col01 varchar2(100));
    You can query the euro code point:
    select dump(col01, 16) from tab01;
    Check to see if the value shows A4.the result we have is Typ=1 Len=1: bf
    5. Please be aware that the example above is for varchar/char
    column. You mentioned uploading blob content into database. Is
    it a separate issue? Or do you just request a blob example?Actually blobs are not a problem. What we actually meant is that we are uploading some blob content into the database for which we have to use com.oreilly.servlet.MultipartRequest. But inserting euro symbol becomes a problem when we use this. If we use without multipart request we are able to insert euro but will not be able to upload blob. Blob content is not related to euro.
    6. If problem still persists, I suggest that you send us a simple
    program of yours that include the HTML/JSP and your schema
    (SQL). Here is the program we are using to test.
    <html>
    <HEAD>
    <title>Charset Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
    </head>
    <body>
    <form name='f' action="CharsetTestJSP.jsp" method=post enctype="multipart/form-data">
    <input type=text name="TestValueMpr">
    <input type=submit value="Submit for MultipartRequest">
    </form>
    <form name='forn' action="CharsetTestReqJSP.jsp" method=post >
    <input type=text name="TestValueReq">
    <input type=submit value="Submit for OrdinaryRequest">
    </form>
    </body>
    </html>
    this is the html file with two forms , one with multipart request and the other without it. When used the form without multipart request, inserting euro into the db, stores it correctly and displays it correctly when retrieved. The html form calls 2 jsp files which are as follows:
    CharsetTestReqJSP.jsp
    <%@ page contentType="text/html; charset=ISO-8859-15" %>
    <%@ page import="com.interactive1.kf.Config,java.sql.*"%>
    <%
              //response.setContentType("text/html");
    //response.setHeader("Content-Type", "text/html; charset=ISO-8859-15");
    //java.io.PrintWriter out = response.getWriter();
    String test = "test";
    String testFromForm = request.getParameter("TestValueReq");
    * Here instaed of the test value we are
    * inserting what is coming from the form
    Connection con = null;
    try {
    con = Config.getInstance().getConnection();
    StringBuffer sql = new StringBuffer("INSERT INTO x_temp VALUES (?)");
    PreparedStatement pstmt = con.prepareStatement(sql.toString());
    pstmt.setString(1,testFromForm);
    pstmt.executeUpdate();
    pstmt.close();
    pstmt = con.prepareStatement("SELECT * FROM x_temp");
    ResultSet rst = pstmt.executeQuery();
    while(rst.next()) {
    out.println(rst.getString("text"));
    rst.close();
    pstmt.close();
    } catch (SQLException se) {
    out.println("problem sql exception : " + se.getMessage());
    } finally {
    if (con!=null) {
    try {
    con.close();
    } catch (SQLException se) {
    se.printStackTrace();
    out.println(response.getCharacterEncoding());
    out.println("");
    System.out.println("");
    %>
    CharsetTestJSP.jsp
    <%@ page contentType="text/html; charset=ISO-8859-15" %>
    <%@ page import="com.interactive1.kf.Config,java.sql.*,com.oreilly.servlet.MultipartRequest"%>
    <%
    System.out.println("request="+request.getParameter("TestValueMpr"));
    MultipartRequest mpr = new MultipartRequest(request,5*1024*1024);
    System.out.println("mpr="+mpr);
              //response.setContentType("text/html");
    //response.setHeader("Content-Type", "text/html; charset=ISO-8859-15");
    //java.io.PrintWriter out = response.getWriter();
    String test = "test";
    String testFromForm = mpr.getParameter("TestValueMpr");
    * Here instaed of the test value we are
    * inserting what is coming from the form
    Connection con = null;
    try {
    con = Config.getInstance().getConnection();
    StringBuffer sql = new StringBuffer("INSERT INTO x_temp VALUES (?)");
    PreparedStatement pstmt = con.prepareStatement(sql.toString());
    pstmt.setString(1,testFromForm);
    pstmt.executeUpdate();
    pstmt.close();
    pstmt = con.prepareStatement("SELECT * FROM x_temp");
    ResultSet rst = pstmt.executeQuery();
    while(rst.next()) {
    out.println(rst.getString("text"));
    rst.close();
    pstmt.close();
    } catch (SQLException se) {
    out.println("problem sql exception : " + se.getMessage());
    } finally {
    if (con!=null) {
    try {
    con.close();
    } catch (SQLException se) {
    se.printStackTrace();
    out.println(response.getCharacterEncoding());
    out.println("");
    System.out.println("");
    %>
    I hope this will help you to suggest a remedy for our problem.
    Thanks

  • Displaying a jpg on the browser using a simple http server.....

    Hi
    I've written a simple server which responds by sending a jpg file .
    BROWSER ---request---> SERVER ( reads a jpg file, converts to byte[] and writes to browser )
    ^
    |
    |
    <----response ----------
    So I connect from the browser and the server sends a jpg and I'd to display that. Everything is thru sockets. There is no webserver as such.
    The problem is, I'm getting the text fine, but instead of the picture, I get lots of characters...probably the browser is unable to interpret the jpg . How to I display the jpg ? Do I have to convert the characters in the server code before sending it ?
    Anything to do with Base64 encoding ??
    Thanks !!

    All answers to this question including mine disappeared ??????
    In order to serve an image or any other type of data over the HTTP protocol you have to supply the correct HTTP response header with the data.
    The stream of bytes written to the client should be structured like this:
    A status code followed by several lines of key/value pairs with header information, a blank line and finally the bytes of the image.
    All lines in the header should end with \r\n no matter what OS the server is running.
    HTTP/1.1 200 OK
    Date: Wed, 07 Nov 2001 18:37:47 GMT
    Server: MyServer/0.1
    Content-Type: image/jpeg
    Content-Length: 4321The Content-Length field must have the length of the image data in bytes. The Content-Type field must be the correct mime type for the image data.
    Read RFC 2068 if you want or need more information.

Maybe you are looking for

  • Belkin Mini Display Port to HDTV not working anymore with MBP

    I have a MBP V 10.7.5 and I was using a Belkin Mini Display Port to HDTV. This was working perfectly a few months ago and now when I try to connect, My Mac screen will turn blue for a minute but the TV will read "No Signal". There is nothing wrong wi

  • At the time of GR posting GL account error

    Dear Experts                    At the time of posting GR with reference to purchase order SAP is telling error as " Field text is a required field  for GL Account AAA - 334420 Here AAA is company code and 334420 is GL account number. What is the pro

  • LinkedIn doesn't show the CAPTCHA when logging in

    While trying to log in to LinkedIn, the CAPTCHA, or security tool, doesn't show up on the screen and therefore can't get type the letters/numbers to get in. Any advice on who to rectify this? Version 3.6.8

  • Can I buy something from a certain store over the phone?

    Say there is a deal on tomorrow with the 5s, can I ring up my local store and pay over the phone? Or can I reserve it....

  • Simultaneous installation of CS4 and CS5 elements

    Currently we have an installation of InDesign CS4. We are looking to purchase CS5 Design Standard which we can upgrade to from our installation of InDesign CS4, saving around £400. The issue we have is that we have a third-party plug-in for InDesign