Opening Excel(HTML) output in Excel

I have an issue whereby my Excel(HTML) output from XMLP is opening in a web browser rather than Excel. I've been through some previous threads on the same issue and many of them mention setting up a 'new viewer' or somesuch as the solution.
I'm not familiar with that terminology so I'm guessing it a piece of eBusiness Suite functionality. Unfortunately I'm using PeopleSoft and I can't see anything comparable.
What I have found however is that if you manually alter the header of the output file it works perfectly. i.e. the header looks like this:
<html>
<!-- Generated by Oracle XML Publisher 5.6.2 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Title</title>
If I change the 4th line to read:
<meta http-equiv="Content-Type" content="application/vnd.ms-excel"; charset=UTF-8"/>
It opens in Excel exactly as we'd want. The question is, how do I change this content type? Is there a server side configuration or is it something I can change via XSL?
kind regards
Duncan
http://www.PeopleSoftTipster.com

Hi Scott:
I am facing this issue using XML Publisher in 11.5.10.2. I have been able to open rtf reports in PDF format but when choosing Excel, the output is opening in an html web browser.
XML Publisher version is 5.6.3.
I am using Oracle XML Publisher Template Builder for Word; version 5.6 Build 45.
So, I have 2 questions at this point.
1. I can try Duncans' "fix" and see if that corrects the issue (not really a question).
2. Should I be upgrading to a version of BI Publisher template for word (10.13.2.1) ?
Thanks and regards,
Karen

Similar Messages

  • Unable to read file - opening a html file with excel

    Hi all,
    I have the next issue:   I have developed a report on HTML format, however when I export this one (to excel) I save the file with a 'xls' extension, however, (in excel 2007), when I try to open the file I get the error "Unable to read the
    file".
    can you help me with this issue?

    Hi,
    Did you create a PivotTable report in the file? As your description, the HTML format could be used correctly in Excel 2007. Did you get the other error message?
    Such as,Unable to read file.
    When you click OK,   you receive the following error message:
    Errors were   detected in '<var>filename</var>.xls', but Microsoft Excel was   able to open the file by making the repairs listed below. Save the file to make   these repairs permanent.
    PivotTable report   '<var>report_name</var>' on   '[<var>filename</var>.xls]worksheet_name' was discarded due to   integrity problems.
    Please try to use the workaround:
    Turn off AutoRecovery when you work with any workbooks.Click Excel button>Excel options>Save>Uncheck AutoRecovery
    Following this, if the issue exists, I recommend you fix the issue the following KB:
    http://support.microsoft.com/kb/943088
    http://support.microsoft.com/kb/929766
    Regards,
    George Zhao
    TechNet Community Support

  • Oracle Reports 9I generate output in excel

    Report Builder 9.0.4.0.33
    I tried generating output to Excel using 10GR2 Report builder using SPREADSHEET for destype on the web and it works.
    The requirement is for this one customer who is on 9I and they are asking for excel output functiuonality on thier existing reports.
    Does oracle has a patch or any other way to generate the exisitng reports on 91 where we can give them a selection like SPREADSHEET in the parameter screen and it would generate the report in excel.
    Thanks
    I tried by appending below to the url in the before report trigger.
    &mimetype=application/vnd.ms-excel
    which works but, we give other selections to the user too where they can change the desformat to PDF or HTMLCSS...and they all try to open the report output in excel.
    Edited by: Forms_Reports_Beginner on Oct 6, 2009 3:17 PM

    Thank you Lalitk and Dennis,
    My team mate wrote a javascript function on before report trigger that checks the paramter selection for desformat and append the mimetype accordingly.Hence, able to achieve the functionality.
    Thanks.

  • How to Generate HTML Report Output in Excel

    Dear Experts,
    How to convert HTML report output in Excel.
    I have reports which output is coming in HTML format & the same I want to use in Excel.
    So tell me how I can covert the same in Excel.
    Thanks
    Sudhir

    hello,
    in your case, you might want to make the following :
    a) use DESFORMAT=HTML
    b) use MIMETYPE=application/vnd.msexcell (or whatever mimetype your excel application is bound to)
    i am nor sure if excel will understeand our HTMLCSS (which is actually HTML4.0 using layers for best possible rendering of the paper page in the browser).
    regards,
    the oracle reports team

  • Alv output in html and in excel format

    hi all,
         how can i get the alv output in excel sheet and also in html.
    not dowloading but directly when i execute the report i need to get output in excel and in html format.
    regards,
    geetha

    hii
    Use the Local file button on the toolbar of ALV.By clicking on this you will be able to export data in to excel sheet.
    also refer to following link
    Download ALV into excel file
    If your requirement is to download data programetically then you can use
    GUI_DOWNLOAD Function Module..
    regards
    twinkal
    Edited by: twinkal patel on Jul 24, 2008 9:23 AM

  • Problem While exporting HTML table to Excel(.CSV) in SharePoint 2010

    Hi ,
    I was exporting HTML table to .CSV file. 
    Problem is if any field contains '>' or '<' symbol then after exporting to .CSV, it was showing like '&gt' and '&lt' and the code is  as below.
    //Export HTML table to CSV 
    function toCSV() {
          var data = document.getElementById('reportstable');
          var csvData = [];
          var tmpArr = [];
          var tmpStr = '';
          for (var i = 0; i < data.rows[0].cells.length; i++) 
            tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
          csvData.push(tmpArr.join('\t'));
          for (var i = 1; i < data.rows.length; i++) 
            tmpArr = [];
            for (var j = 0; j < data.rows[0].cells.length; j++) 
            tmpArr.push(data.rows[i].cells[j].innerHTML);
            csvData.push(tmpArr.join('\t'));
          var output = csvData.join('\n');
          SaveContents(output);
    //For saving the file
    function SaveContents(element) {
            if (document.execCommand) {
                var oWin = window.open("about:blank","_blank");
                oWin.document.write(element);
                oWin.document.close();
                var success = oWin.document.execCommand('SaveAs', false, "FilteredReport.xls")
                oWin.close();
    Thanks in Advance

    Hi,
    According to your post, a problem occurred when you exported the HTML table to Excel(.CSV).
    The following code for your reference:
    function toCSV() {
    var data = document.getElementById('reportstable');
    var csvData = [];
    var tmpArr = [];
    var tmpStr = '';
    for (var i = 0; i < data.rows[0].cells.length; i++)
    tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
    csvData.push(tmpArr.join('\t'));
    for (var i = 1; i < data.rows.length; i++)
    tmpArr = [];
    for (var j = 0; j < data.rows[0].cells.length; j++)
    tmpArr.push(data.rows[i].cells[j].innerHTML);
    csvData.push(tmpArr.join('\t'));
    var output = csvData.join('\n');
    SaveContents(output.replace(/&lt;/g, '<').replace(/&gt;/g, '>'));
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Problem getting output in Excel

    Hi!
    I'm having problems with getting output in excel.
    I generated report that gives me xml and it was ok.
    Then I started concurrent to merge template and this xml and chosed Excel as output.
    When I try to open it in IE all I'm getting is
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://testserver.hlutrija.hr:8001/OA_CGI/FNDWRR.e...
    <td class="c2"><p class="c8"><a name="Text35" id="Text35"><a name="Text34" id="Text34"><span cla...
    When I try to view output from Firefox(it's more forgiving for incorrect xml then IE) it opened the whole document as a text (no xml, no excel but text - I saw that on a page info).
    Anyway I realized that indeed generated xml wasn't correct since one <a tag wasn't closed.
    But I tried to copy/paste to text editor and save as .xls file and it opened it OK.
    But this certainly isn't the solution you would wan't to offer to a client.
    On this instance XML is 5.0.
    I tried bunch of things to make it open directly in Excel (I believe that then it wouldn't have any problems - ie when I used preview on defining template it offered me to open or save in Excel and I got what I wanted).
    I tried to define Viewer Options (added applications/vnd.ms-excel for XML, HTML, Text Desc: Microsoft Excel), set the profile Viewer:Application for HTML/XML/Text to Microsoft Excel). But that didn't help either.
    I even tried defining new Profile -> Viewer:Application for Excel based on similar Profiles. But this also didn't help.
    Every time the result is the same both in IE(stops because of bad xml) and Firefox (I get bad xml recognized as text).
    On another instance I have xmlp v 5.6.2
    There I have some sample report and sample template.
    When I there try to open output in Firefox once again I get xml recognized as text.
    When I try to open in IE(7.0) I get a page that looks like html in browser.On the Page file menu I have option to edit in Excel. When I choose that it opens Excel but instead of this same page I only get: Authentication failed.
    When I try to save this page it offers me only web formats (whole web page...). But nevertheless I tell it to save like test.xls. It saves ok. But when I try to open it. Excel starts but again all I get is: Authentication failed.
    When I open this in text editor it has only:
    From: <Saved by Windows Internet Explorer 7>
    Subject:
    Date: Thu, 30 Aug 2007 14:28:37 +0200
    MIME-Version: 1.0
    Content-Type: text/html;
         charset="iso-8859-2"
    Content-Transfer-Encoding: 7bit
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
    Content-Location: http://server.client.hr:8002/OA_CGI/FNDWRR.exe?temp_id=3132885517
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
    <META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
    <BODY><PRE>Authentication failed.
    </PRE></BODY></HTML>
    I really don't have any more ideas.
    I've searched this forum, metalink, web, but nothing yet helped.
    Can anyone help?

    Is your xml file being generated correctly?
    For the request that you submitted, click the 'View Details' button. If the 'View XML' button is enabled, click that and it will open your XML in a new browser.
    If it's not enabled, the request needs to be changed so its output is XML.
    Not sure if this will help, but at least it will eliminate that there is anything wrong with the file or data.
    Janel

  • Moan about Reports ability to output to Excel

    Hi there
    This is more of a general moan on this topic, but am I the only person who thinks that Oracle Reports' ability to output to excel should be WAY better than it is at the moment?
    I've just looked at the 9i demo, showing how to get report output into excel. It was horrific - grubbing round in raw html code and setting up an Excel template with dummy data doesn't make Reports the slick reporting tool that we'd all like.
    Guys @ Oracle - have a look at Cognos Impromptu - I'm definitely no fan of Cognos, as I prefer to be able to define exactly what I want in SQL. However, one thing they have got right is the facility to save report output into formatted Excel - Oracle Reports should have this too!!
    At the moment, if I'm asked to produce a report in Excel format, I have to either use PL/SQL to generate a CSV file with the results I want, or Oracle Reports to produce a similar CSV file. I then have to open the CSV file in Excel and format it, change column widths etc, so that it looks presentable. If it's a regular-running report, I have to manually intervene every time the report is produced. Producing a similar report in Cognos (for all its faults) would require no manual intervention once it's set up, and the whole process can be controlled with macro language and the Cognos Scheduler.
    So please, improve this feature of Reports!
    Andrew Woodward
    UK

    Hello again
    All I'd like to be able to do is to write an Oracle Report and have the figures from the report delivered in an Excel spreadsheet. (A number of report users here specify that they want their reports delivered in this way.)
    Oracle Reports (I'm on version 6i) allows me to generate a .csv file which will open in Excel, but there's no formatting present. My point was simply that I have to manually intervene to produce a .xls which is formatted properly. In Cognos Impromptu, after the report has been run, you just select SaveAs->(input filename) and select 'Excel with Format' for SaveAs Type. The output is a pretty good approximation of how the output appears on the screen. You can run reports automatically using a scheduler, and with macro language, you can deliver the report in this format with no further intervention needed. If Cognos can do this, then so can Oracle!!
    Incidentally, I've noticed that every post on this forum which mentions Excel receives a plug from Lion Van for his RepExcel product. I had a look at his website and it looks pretty good - perhaps Oracle should approach him with a generous offer?! I'm not sure however that these forums should be used for advertising in this way.
    Best regards
    Andrew
    UK

  • How to export report output into excel file

    hi friends,
    i would like to get the solution from you for how to export the report output into a .xls file. i know how to convert it into .rtf and .txt files but i think it's difficult to do this .xls way, could you help me to comeover this problem?
    thankyou very much.

    The official answer is "delimited", which
    generates adequate comma or other delimited
    text. No formatting, and without extra
    effort no support for non-ASCII characters.
    Might be sufficient for you.
    Note that Excel can read html files - we
    built programs to generate html files with
    name of "blah.xls" and some Excel-ish
    extensions, so Excel is automatically opened
    and the document is all nice and pretty.
    (Oracle html output has some odd logic about
    choosing number of columns, we didn't use
    it.)
    -- Allan Plum

  • CFCONTENT outputing to Excel issue

              Hi folks, 
    I have a simple process that does a query and uses CFCONTENT to output a CFTABLE to a content type of "application/msexcel".  Now this works fine 90% of the time.  But I can reproduce a problem where it doesn't quite work as expected, when querying certain records. When this works,  the user gets the file downloaded to them and they open it and they see their data.  But with certain query results, the excel file opens and appears to be blank, but if you scroll down to like line 2000 you will see the embeddded HTML output for the CFTABLE with all the data.  Like this:
    <table border><tr><th>ID</th>.....
    That's in the Excel file in place of just the outputed data.
    Because I can reproduce it with the same query over and over, I know it's likely something in the data like an extra quote or something like that, which is throwing off CFCONTENT.   Now, I can't control the data so I'm looking for suggestions for how I can wrap the data inside a CF Tag to preserve the output.
    Any ideas?  I don't have access to CF9/10 or I would explore CFSPREADSHEET.  I have CF8.  Thanks
    My code is quite simple, basically like this:
    <cfcontent type="application/msexcel">
    <cfheader name="Content-Disposition" value="filename=Export.xls">
    <cfquery datasource="#DS#" name="Getdata">
    select * from tablewhere practiceid = #practiceID#
    order byName
    </cfquery>
    <cftable query="getdata" htmltable="yes" colheaders="Yes" border="yes">
    <cfcol header="ID" text="#ID#">
    <cfcol header="First Name" text="#firstname#">

    Next time you encounter this, bear in mind that all <cfcontent> does in this case is to set the HTTP response MIME type header, which gives the browser guidance as to how to handle the data it receives.  It does not transform the data in any way.  So if you're using <cftable> (why?  Oh why?) then your're sending HTML and telling the browser it's XLS data.  Leaving it up to Excel to make sense of it (which it will kinda do, if the HTML it tidy).
    If you are getting unexpected results, just do what you'd - hopefully - normally do: look at the data you're sending back to the browser, and try to work out where it's going wrong.  I presume in this case there was a tonne of white space generated by <cftable> for some reason.
    In general if you want to set the MIME type for the response, get the data you want to send back ready (ie: put it in a variable), then call <cfcontent> with both the TYPE and the RESET attribute, then output the data.  This will mitigate some (although not all) of whitespace CFML churns out as part of "doing business", leaving only the data you actually want in the output buffer.
    Adam

  • I am not able to open the html format outputs of SQR

    when I am trying to open SQR html formate output generated by SQR jobs not able to open the html format outputs of SQR getting below error
    but I am able to open pdf and excel formats outputs
    "An error was encountered while attempting to retrieve audit_control_info_frm.htm from the Hyperion Reporting and Analysis - System 9. This error is normally encountered when there is no free disk space on the machine hosting Hyperion Reporting and Analysis - System 9 Application. Hyperion Reporting and Analysis - System 9 Application uses a directory on the hard disk to store temporary files while downloading objects. To rectify this problem, if the disk hosting the Hyperion Reporting and Analysis - System 9 Application temporary directory is nearly full, free up additional disk space. After confirming that there is available disk space, restart ALL Hyperion Reporting and Analysis - System 9 servers. <p>Another possible cause of this error is that you have attempted to embed a "Versioned Collection" into your Personal Page. A "Versioned Collection" is typically created when you publish a document and request the creation of an additional compressed copy. Embedded "Versioned Collections" are not supported by Hyperion Reporting and Analysis - System 9.
    A general error was encountered contacting the server.
    Recommended Action: Contact your corporate technical support."

    Welcome to the Apple community.
    Have you tried restarting your web browser, if that doesn't help you might try emptying your web browser's cache.

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • ALV Report output in Excel format

    Hi ,
    I am facing a different behaviour in two computers , while trying to take an Excel format of an ALV report output. After generating the ALV output ,in one , when I click on the Excel Format button - the Excel spreadsheet opens with the output data. In the second computed , under the same action , a blank Excel sheet opens .
    Could someone tell me a solution . What aspect is responsible for this ?
    Regards ,
    Sujata

    Reduce the MACRO security settings in the Excel to Medium.
    Open an execl sheet, Chose from menu Tootls->Macro->Security.
    Chose the radio-buton medium. Close the file and all excel applications.Then try downloading again.
    Regards,
    Ravi

  • Want to convert RDF output in Excel & Pdf Format.

    Dear All,
    I want that when i run my report with showing the output report builder also convert that file or ask me an option in parameter that in which view you want to see the output of the report in Report Builder, In Excel, or In Pdf. when i choose Excel it open the excel and show the output in Excel, if select Pdf it open Acrobat Reader and open the output in Pdf.
    Kindly dear inform and tell me line by line procedure that how can we do that. i will be very greatful to you all,
    Thanks for your nice cooperation.
    Regards,
    Kamran J. Chaudhry

    Dear Rainer,
    First of all Dear thanks for your nice cooperation.
    secondly i apply the same line in my button press as i show you my code before and you said add only the code line which you send i do it but no result same in Report builder the report output is not showing in PDF i am using Report Builder 6i
    DECLARE
    PL_ID      PARAMLIST;
    BEGIN          
    PL_ID := CREATE_PARAMETER_LIST('REPDATA');
         ADD_PARAMETER(PL_ID,'P_DAILY_ID',TEXT_PARAMETER,:EMP_PROGRESS_MAT.DAILY_ID);
         ADD_PARAMETER(PL_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
         ADD)PARAMETER(PL_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
         RUN_PRODUCT(REPORTS, 'D:\DAILY-PROGRESS\EMP_SINGLE_RPT',SYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         Destroy_Parameter_List(pl_id);
    END;
    I also change in the System parameter DESFORMAT , Initial Value as a PDF
    Kamran J. Chaudhry

  • How to Download displayed output to Excel Using Bsp Application

    Hi Experts,
    please give me some idea because I am New In BSP.
    How to Download displayed output to Excel Using Bsp Application.
    If any sample code please do send me.
    In my condition I am getting data in  2-3 table view formats on one page and i want download that in Excel.
    please help me.
    Regards & Thanks,
    Yogesh

    Hi,
    This is more a question for the BSP forum.
    Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
    runtime->server->response->set_header_field( name = 'Contnet-Type'
    value = 'application/vnd.ms-excel' ).
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
    runtime->server->response->delete_header_field( name = 'Expires' ).
    runtime->server->response->delete_header_field( name = 'Pragma' ).
    Also check threads like
    Download BSP data into Excel
    export bsp-table to excel
    Export BSP Table to Excel
    Eddy
    PS. Reward useful answers and earn points yourself

Maybe you are looking for

  • Setting Up Photo Viewer in DW

    I have about 40 pictures that i would like to set up in DW like: Maybe a thumbnail page and then open pics to larger format when clicked.... Is there some kind of prewritten code / wizard that can help set this up?

  • Screen not turning off during call

    When I am holding the phone up to my ear, the screen goes black, but if I move it away just a little bit the screen lights back up. So during calls I am hitting keys on the touchpad, placing the call on hold, muting calls, etc. This was not a problem

  • Auto-run report!

    Hi SDNers, I have to run a report daily at 10 am for last day despatch details. if it is monday then i have to run for last day and previous last day (saturday and sunday). now my requirement is i want to run the report automatically daily at that pa

  • Servlets & Microsoft's IIS

    Hi, I'm looking for a way to run servlets on IIS; SUN's servlet page and some books say "now it's supported by MS IIS", but that doesn't seem to be exactly the case, right? There is an article from PC magazine *1997* online saying "And yes, IIS now f

  • TableLayout and lov - how to solve?

    Hi I have a screen with tableLayout and I must show to user something like lov, this screen must take the selecected value back to caller field. The real LOV is not working - see Thread: tableLayout and lov OAMessageLovInputBean is not working togeth