Reports 10g (9.0.4.0) to generate excel output

The following line cause error to execute the report
<%@ page contentType="application/vnd.ms-excel" %>

Hi,
Change the line to:
<%@ page contentType="application/vnd.ms-excel; charset=<your_charset>" %>
Replace <your_charset> above with the value.
Navneet.

Similar Messages

  • Reports which generate Excel output do not open under ie8/Oracle Forms

    Hello,
    we run Oracle Forms (regardless whether under Jinitiator 1.3.1.22(28) or SUN JVM) and generate Excel output with Oracle Reports (web.show_document). This works well under Internet Explorer 6 (ie6) but not under Internet Explorer 8 (ie8).
    The effect ist that a new browser window opens and closes very quickly without anything further happening.
    I honestly assume that this has not to do with oracle reports but ask this nevertheless in this forum as there might be people which made the same experiences...
    I additionally found out that the same problem exists when gerenating excel or ms word output via a db procedure (with http. modules). There I found that suppressing the question (open/save/cancel) before opening a file (via the windows explorer file type association menu) helped with excel and ms word output (but this might be regarded as a not satisfying workaround).
    The problem persists with other applications' file types than XLS or DOC which are also correctly registered on the client.
    I'm not sure whether mimetypes sent along with the files (which were obviously correct with ie6) play a role in this problem.
    Peter

    Hello,
    Your problem with IE 8 seems to be similar to the one discussed here :
    IE7 windows opened and closed immediatly
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Interne
    t_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • Generate Excel Output

    Hi All!
    I would very much appreciate if you could send me the code for generating Excel output.
    Thanks,
    Waqas
    [email protected]

    Hi,
    Here's the code for generating the excel output, you can write this in button press of form which calls the excel report.It automatically opens a new excel sheet , and then it executes the SQL query, after that each rows will get filled with the values.
    First of all you need to makeall the queries in the report in to a single query.
    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;
         cell CLIENT_OLE2.obj_type;
         args CLIENT_OLE2.list_type;
         rowcount integer;
         i integer;
         cursor c2 is select 1 from dual;
         cursor c1 is /* write your select query that fetches the required values */
    begin
    application := CLIENT_OLE2.create_obj('Excel.Application');
    CLIENT_OLE2.set_property(application,'Visible','True');
    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');
    rowcount := 0;i:=1;
    for rec1 in c2 loop
    rowcount := rowcount + 1;
    -- For the headings
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,1);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value','Column 1 Heading');
    CLIENT_OLE2.release_obj(cell);
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,2);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value','Column2 Heading');
    CLIENT_OLE2.release_obj(cell);
    end loop;
    for rec1 in c1 loop
    rowcount := rowcount + 1;
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,1);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value',rec1.field1);
    CLIENT_OLE2.release_obj(cell);
    /*null value may create problems,then use the if condition as follows*/
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,14);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    IF rec1.field2 IS NOT NULL THEN
    CLIENT_OLE2.set_property(cell,'Value',rec1.field2);
    ELSE
         CLIENT_OLE2.set_property(cell,'Value',' ');
    END IF;
    CLIENT_OLE2.release_obj(cell);
    end loop;
    CLIENT_OLE2.release_obj(worksheet);
    CLIENT_OLE2.release_obj(worksheets);
    CLIENT_OLE2.release_obj(workbook);
    CLIENT_OLE2.release_obj(workbooks);
    CLIENT_OLE2.release_obj(application);
    EXCEPTION WHEN OTHERS THEN
         MESSAGE(SQLCODE||' - '||SQLERRM); MESSAGE(' ');
    end;
    Hope this helps .
    Regards,
    Nycy

  • Reports to generate excel output

    Update reports 9i to reports 10g, and the reports output to excel they generate error.
    Reports Error Page
    Wed Oct 20 15:10:31 GMT-05:00 2004
    java.lang.NullPointerException
    java.lang.NullPointerException
         at com.evermind.server.http.EvermindBodyContent.setCharacterEncoding(EvermindBodyContent.java:458)
         at com.evermind.server.http.EvermindPageContext.pushBody(EvermindPageContext.java:630)
         at oracle.jsp.runtime.OracleJspRuntime.pushBodyIfNeeded(OracleJspRuntime.java:1385)
         at repuc1_excel._jspService(_repuc1__excel.java:54)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

    Try adding charset to the content type
    e.g:
    <%@ page contentType="application/vnd.ms-excel;charset=ISO-8859-1" %>

  • Problems in generating excel output

    Hi all,
    I'm facing a problem submitting a report with XML output (XML Publisher 5.0.1). I created a RTF template in order to generate an excel output but when I launch the concurrent, its status after few minutes becomes "Warning" logging java.lang.OutOfMemoryError. The strangest thing is that the PDF output generates normally without errors or warnings.
    I've found on metalink a note in which they suggest to create a configuration file (xdo.cfg) where i've declared a temporary folder in order to split the XML in two parts to allow the XDO to create correctly my excel output....but it didnt work! :(
    After that I added to my concurrent execution options the string "-Xmx512m" to increase the memory for that particular task (even if i think that 128 mb for a XML file of 5 MB are more than necessary)... but no results (in this case i've had another error "java.io.FileNotFoundException: /opt/app/oracle//admin/out//o2260792.out (No such file or directory)" ).
    Can someone help me??
    Is it a normal behaviour?? It seems to be a joke, cause in metalink they suggest everybody to apply patches and patches!!
    Thx all

    Hi Nisha,
    Refer to that link.....May be it will helpful for you....
    Are You All Able to get the Output In EXCEL Format
    Otherwise you can do one thing......Add one more Viewer option for XML type data... Most probably earlier For viewing the XML data you are using Browser... So by default whenever you are trying to see the output it is opening it in Browser....
    Now add one more Viewer option For XML as Microsoft Excel......
    So After making two viewer option for XML data whenever you will try to see the output of XML data it will ask you...Viewing option...1.Browser 2. Excel
    Choose Excel here it will not give you any error and you will be able to open the output in Excel format.....
    Regards
    Ravi

  • How to embed an attachment in rtf(excel output) from oracle reports

    Hi,
    I have a requirement to embed an attachment from oracle reports(fnd_lobs) into rtf template which will generate excel output.
    Can you please provide me suggestions on this.
    Thanks,
    Kavya

    Hi,
    I will judge few records whether to display or not. i am using one variable to handle its display.
    i want to avoid using IF in my templated .
    Please suggest the best way
    Regards,
    Phani Reddy

  • XML Publisher Report EXCEL output Huge stored as Web Pages

    Hello
    I have a XML Publisher Report which generates EXCEL output and the output file size is huge.
    What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
    If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
    I don't know how to save as ".xls" through XML Publisher using PL/SQL.
    Any body knows? please Help..
    XML Publisher Template Builder for WORD
    Version 5.6 Build 45
    PATCH        BUG_NUMBER
    XDO.H     *3263588*
    4.5.0     *3554613*
    5.0.0     *3822219*
    5.5.0     *4206181*
    5.0.1     *4236958*
    5.6.0     *4561451*
    5.6.1     *4905678*
    5.6.2     *5097966*
    5.6.3     *5472959*
    Thanks.

    Hi Vetsrini,
    We're on 10.1.3.4.1 and siebel 8.1.1.3 and when trying to open a report from within siebel in the output format EXCEL (selected from the parameter applet), it just opens the document in the browser.
    Is there a way to get it to open directly in Excel? I guess the reason is the file extension*.EXCEL, how could we get the extension to be in excel format (xls)?
    We don't want our users to have to do this themself.
    Regards,
    Hakan

  • Excel output gets expanded when developing Xml publisher report !!

    I am developing a report using XML publisher which generates Excel output ....
    And my layout keeps repeating for every unique delivery...(i am passing 'x' deliveries as input)
    1) When i try to generate a pdf output, my report works fine but when i try to generate an excel output the table size expands..
    2) The jpg file inserted in the rtf(layout template) appears when i generate pdf report and does not appear in the excel output..
    What could be the reason ??

    Hi;
    Please see below thread which could be helpful for your issue:
    XML PUBLISHER report in Excel out put problem
    Regard
    Helios

  • Excel output for the xml publisher report when it is [b]scheduled [/b]

    How to get the excel output for the xml publisher report when it is scheduled by a apps user? Like what is the user profile option (for the apps user who runs the report) and what are the other things that needs to be taken care of so that only this xml publisher report run by this apps user produces a EXCEL output (When scheduled) ???
    Really appreciate it if any one can help me in this regards.
    Thanks
    Munna

    Hi Munna,
    For eBusiness Suite (apps user) the report output is stored the same way whether executed immediately or scheduled.,To get excel set the options > output format to Excel. Only the user that submitted the report can view it, or you can get the output file from the server. Or you can set the notify option so that a Workflow Notification is sent when the request completes.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Generate txt output using a program unit in web report (OAS 10g)

    Hi Everyone.
    I have a c/s report (6i) which generates a txt file in a program unit using TEXT_IO package. I need to move this report to web (Reports 10g) and publishing it in OAS 10g. I've done that (without the text file generation), I can see the report on the browser in PDF Format and works fine... but, I still have a problem... when I use Text_io package, the c/s version of the report in 10g runs an generates the output.txt file but when I move it to web I got an error in the before report trigger (in which I invoke the program unit sp_generate_txt)
    I looked around for a solution and I just find the usage of webutil package, but as you know, webutil package is only usable in Forms.
    Any Ideas on how can I solve this problem?

    Hello,
    TEXT_IO can be used in Reports deployed on the web.
    The difference with Client /Server is the fact that the file create by TEXT_IO will be created on the "Middle Tier Server" and not on the Client.
    Regards

  • Generate arabic pdf in oracle report 10g

    what is the right way to generate arabic language in oracle report 10g destype=PDF??
    i do that for font < arial > and < transparent arabic >
    but i have a problem with some arabic font
    like < simpilified arabic >
    and i put this font in utifont.ali

    You could use the java-library barbecue to generate an image from your number and then include that image in your report.

  • Easiest and/or best methods for generating XML output (not with a report)

    Hi, several of our EBS customers (11.5.10) are converting their PDF reports to use XML/BI publisher to produce output. The data stream comes from a report that generates the XML output, and then the XML template is applied. This works great ... no problems, etc. From what I have read, however, Oracle intends to treat the traditional Forms and Reports Developers as legacy tools (although still supporting them, of course).
    My question is if I wanted to ditch using Reports to generate XML output, what, in your opinion or in your current usage, is the easiest way of getting this data? In Reports, the data modeler is excellent in providing a method to write your queries, split them into different repeating groups, write formula and summary columns, link multiple queries, etc, etc. If one were to become Reports Developer free, what comparable tools are available to take its place? I would expect this tool to handle a mix of GUI and coding like the Reports data modeler. Please note that I'm not looking for an EBS-specific solution -- say for a custom application using regular Oracle 10g DB and iAS, with BI Publisher for reporting.
    Thanks for your feedback,
    Ryan

    What I'm looking for is to not use Oracle Reports to generate the XML data output since Oracle's statement of direction is pushing BI Publisher rather than Oracle Reports as the preferred tool for reporting. That said, the data modeler in Reports provides a very flexible tool to construct and link multiple queries and to manipulate the queries into several levels of a master/detail relationship. Further, the mix of GUI and coding makes setting up the data model a lot more efficient. What I'm looking for (and I don't know if anything exists) is something comparable that can be used to generate XML output from the DB -- the idea being that I wouldn't use legacy tools, like Reports, for this task. I hope that is clearer.
    Really, another way of answering my question is, aside from Reports and the APIs mentioned so far, what are my fellow developers using, if anything, to extract XML data in a way that handles the features i list above?

  • Running Reports 10g on Apps Server

    We have a Windows 2003 apps server running Oracle Forms and Reports 10g.
    We are having a problem running reports in Oracle 10g, and believe it to be something to do with the configuration files. Currently, we can run the test report through Enterprise Manager using both the default reports service and the one that we have created. However we are unable to run our own reports through forms.
    To check that there was nothing wrong with our forms, we copied one of the reports into the …\forms10g\reports\samples\demo folder to see if we could run it through Enterprise Manager. However, we get the following error:
    Rep-110: Unable to open file ……
    Rep-1070: Error while opening or saving a document.
    Rep-0110: Unable to open file …...
    We then renamed the test.rdf file and tried to run that. Again we got the above message. Next we tried again to run test.rdf, even though this no longer existed, and the report ran. This implied that it isn't actually running the report, but has the report output stored somewhere, and it just displays this.
    No matter how we try to run reports, and with which reports service, we always get the above error.
    So why is it that no reports will run, not even the test one when it is renamed? Is there a configuration setting somewhere?

    Hi All,
    Hope YOu are fine.
    We have running Oracle Forms and Reports Services 10g on Windows 2000 Advanced Server.
    The Application Works fine, and reports are generated successfully.
    But when we access the same application by using either Linux OS (RHEL 4.0, Ubuntu 6),
    The forms works fine but Linux OS could not run the report.
    This seems to be a configuration problem.
    Any Clues.
    Thanks and Looking Forward.
    Aamer Javaid
    [email protected]

  • Issue with Oracle Report 10g output

    I want to generate text output in Oracle Reports 10g. I am using paper layout.Length of the fields want to print is 750. Each line is broken in the output after 120 characters length apporx. Please let me know if there is any way to print complete 750 characters.

    Sample output is coming as below :
    T2013 56600084112345                                                                                         FPWC
                                                                           955 OLD WILMINGTON RD                   FAYETTEVILLE
         CUMBERLAND                 NC28301                   00000001CONTACT TESING                          1234567890
                    00000001          I'
    I want it to be discplayed in single line instead of breaking.

  • 4 PDF reports from Single report in reports 10G

    Hi All,
    i want to generate 4 PDF report from one oracle report in reports 10G.
    from the same query i want to generate 4 PDF with different order and result set based upon the query parameter at a single time.
    exp: query fetch Some eng/spanish provider and client data. requirement is i want to spilt into 4 PDF:
    Provider wise Eng.
    Provider wise spanish.
    Client wise english.
    Client wise spanish.
    Can anybody please help on this?
    Regards
    Abhishek

    Hi All,
    i am generating 4 PDF reports from one Oracle reports in 10 G.
    i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
    some time it generates but some time it generate 2 or 3 out of 4.
    Can you anyone help me on this issue.
    Regards,
    Abhishek
    Edited by: user651239 on Sep 22, 2008 10:16 PM

Maybe you are looking for

  • Need Help ASAP. Deleting Underline in Adobe Reader Touch.

    I don't understand why it won't let me delete the strikeout or underline in my Adobe Reader Touch. There is no clear option when I highlight it and write click and the "Ctrl-delete" option is not working either. I need to get rid of both of these. Di

  • What's the best way to delete 2.4 million of records from table?

    We are having two tables one is production one and another is temp table which data we want to insert into production table. temp table having 2.5 million of records and on the other side production table is having billions of records. the thing whic

  • Nokia 6300 microSD

    I've bought the new microSD card for my phone (Kingston microSDHC 4 GB), but i forget to see technical specification of the phone (6300). And the maximum size of the card for this model is 2 GB. So it doesn't see the card and i don't know any ways to

  • Nested select statements.

    Hi, I am writing a piece of code in which i use nested select statements for 4 tables to retrieve one column's data (ie: POSNR). But when i execute it, it takes way too long to get the data. I'm quite new to ABAP so very in need of your help. Thanks

  • Ridiculously long installation time for CS6?

    I'm downloading the CS6 Master Collection through the University of Maryland software center website. I downloaded all the different parts required for installing, and now the installation time remaining says 20 hours and it's still going up. I've cl