XML Publisher to generate Excel reports

Can we use RTF template to generate Excel reports? Is all the process the same or do I need to do some additional set ups? Also, can I create a custom report , set the output format to xml and run XML Publisher on the top of it to generate output of my choice? HAs anybody tried this? or is it possible only in standard reports?
Pl help. This is v urgent , i need to design my process flow accordingly
Thanks much

Hi
Yes you can generate Excel from an RTF template - there are some limitations. The Excel in this case is not binary Excel - its XHTML and the mime type is set so that Excel opens it.
So, you can not embed formulae, macros, etc in the RTF template and get the Excel output to execute them.
You second question is what Publisher is all about, give it XML data and a layout of your choice and then pick the output format you want.
Tim

Similar Messages

  • Cannot open the pdf when using the xml publisher to generate rtf report

    Hello Everyone,
    I followed the below link to generate a pdf using xml publisher in OAF.
    http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    When i try to save the pdf and open it, i get the below error:
    Adobe Reader could not open the pdf because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded).
    Below is the code in CO.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am= (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    // System.out.println(outputStream.toString());//Testing the output by printing the contents in the outputstream.
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    // System.out.println("language is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage());
    // System.out.println("country is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().geCountry());
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    // APP_NAME,
    "PER",
    // TEMPLATE_CODE,
    "Emp_Template",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "English",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    "United States",
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    response.setContentType("application/pdf");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(false);
    Any suggestions on this would be great!
    Thanks
    Kumar

    Below is the code. Can you change so that that the output can be seen in HTML? I checked the language, country etc and they are fine.
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am= (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=PrintPage.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    // xmlNode.print(outputStream);
    // System.out.println(outputStream.toString());//Testing the output by printing the contents in the outputstream.
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    // System.out.println("language is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage());
    // System.out.println("country is "+pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().geCountry());
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    // APP_NAME,
    "PER",
    // TEMPLATE_CODE,
    "Emp_Template",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "en",
    // ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    "US",
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Thanks

  • Problem to display a negative number in XML Publisher output in excel

    Hi All,
    I am facing problem in displaying a negative number in XML Publisher output in excel.
    My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to display it as (123).
    I have put these brackets using a formula column in the RDF, but it is the default functionality of excel that whenever there is a number in brackets then it automatically displays that as a negative value.
    Can anyone please help me how I can display this negative number within brackets and not as a negative digit. Is there any special tag or is there any formula which can be used to convert this into text and written in the Help text of RTF template.
    This is very urgent. If someone knows please reply asap.
    Regards,
    Shruti

    This is very urgent. If someone knows please reply asap.We are all volunteers here, so no ones questions are more urgent then other ones.
    If its that urgent it would have helped if you had chosen the correct forum to ask your question BI Publisher

  • Revised "Generate Excel Report" Example

    I recently answered a question from a Forum user about an error encountered when trying to generate an Excel spreadsheet with the Report Generation Toolkit.  I thought that the example code he was using was "unusual" and overly complex, and just discovered that it was, in fact, the LabVIEW 2013 "Generate Report From Template (Excel)" Example.
    In the spirit of trying to demonstrate how nice the new(er) "Easy Excel" functions are, I rewrote this Example, and have attached it here.  While doing so, I discovered (and have reported to NI) a "bug/feature" of the Excel Insert Graph function.  One of its parameters allows you to position the graph by specifying the Left and Top edges (Left would be the Excel Column, Top would be the Excel Row).  The only problem is that the parameters are reversed -- to put the graph on Row 1, Column G, you specify (0, 6), not (6, 0).  Oops ... 
    Solved!
    Go to Solution.

    Here is a Snippet, in LabVIEW 2012, of the Excel Demo (the Revised Generate Excel Report Example).  If you have LabVIEW 2012 or more recent, you should be able to drag this into a blank Block Diagram and have the VI "magically" created.  If you have an earlier version of LabVIEW, you can at least see a picture of all the VIs and wiring here, and can open LabVIEW and "build it yourself".  There are no Case statements, so nothing is hidden from view.  In case the image is too small, I also attached the PNG file, which you should be able to open with an Image Viewer and potentially print out for yourself.
    Attachments:
    Excel Demo.png ‏108 KB

  • Generating Excel Report from Outlook 2013 for the meetings attended/ accepted

    Hello Team,
    Could you please advise how do I Generate Excel Report from Outlook 2013 for the meetings I attended/ accepted. Also I do I check or figure out the time I spent attending meeting.
    Please help to answer me ASAP.
    Thank you
    Preet

    Hi Preet,
    As far as I know, no features in Office client can generate Excel workbook from Outlook. But we can implement this requirement by macros. If you want to receive more information, I suggest you post this issue on MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share
    their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • R12 generate excel report?

    Dear all,
    I was using 11.5.10 and which supports to generate report in excel file format by using owa.get_page utilities on database 9.2.0.3.
    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.
    Anyone generates excel report from R12?
    Thanks.

    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.Please post the complete error message.
    Anyone generates excel report from R12?Please see old threads -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Excel+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Generate Excel report in JSC

    Is there any easy way to generate excel report for user to download using JSC?

    Hey, here's code that creates the file in memory and pops up a save dialog to allow the user to download
    ByteArrayOutputStream baos = eh.doCreateWorkbook(myList, SQL);
    ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse) ctx.getResponse();
    // DOWNLOAD THE EXCEL FILE
    response.setHeader("Content-disposition",
              "attachment; filename=" +          "OBC_Upload_Summary_"+getCurrDate()+".xls");
    response.setContentLength(baos.size());
    ServletOutputStream os = response.getOutputStream();
    os.write(baos.toByteArray());
    os.flush();
    os=null;
    baos=null;

  • Generating Excel report from java

    I'm generating Excel report from java .I want align a text in top ie)align top.i searched for that ,but i didn't get that.Is it possible to perform align top,if so how?

    the Progrma I' m executing is as follows :
    import java.io.*;
    import java.util.*;
    import jxl.*;
    import jxl.write.*;
    import jxl.write.Number;
    public class excel
    private String filename;
    private WritableWorkbook workbook;
    public excel(String fn)
    filename=fn;
    public void write() throws IOException, WriteException
    WorkbookSettings ws = new WorkbookSettings();
    ws.setLocale(new Locale("en", "EN"));
    workbook=Workbook.createWorkbook(new File(filename),ws);
    WritableSheet sheet=workbook.createSheet("First Sheet",0);
    Label label=new Label(0,2,"A label record");
    sheet.addCell(label);
    Number number=new Number(3,4,3.142);
    sheet.addCell(number);
    workbook.write();
    workbook.close();
    public static void main(String args[]){
         try{
                   excel ecl = new excel("D:\\TestXSL.xls");
                   ecl.write();
              }catch(Exception e){
              e.printStackTrace();
    }

  • EBS: Email XML publisher output, from After Report Trigger in Data Template

    Here is what I'm trying to do:
    -- In EBS (11.5.10 CU2), I'm using XML publisher (5.6.2) data template and layout template to generate Output files (PDF, EXCEL etc)
    --In the Data Template's AfterReport Trigger, I'm using the Concurrent Request Id to locate the Output file name and trying to Email that output file.
    Problem:
    -- When the AfterReport trigger code is executed, the code is NOT seeing the output file and hence the file is NOT emailed.
    Observations/Questions:
    -- From what I observe, the Output Post Processor ( that generates the Excel / PDF files) is running AFTER the code in AfterReport trigger... and hence the AfterReport trigger is Not quite seeing / able to access the output file.
    So, the sequence of execution seems to be:
    -- Before Report Trigger
    -- Data Query (SQL statement)
    -- After Report Trigger
    -- Output Post Processor
    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    If Yes, how else can the DataTemplate access the Output file?
    If No, what could cause the AfterReport trigger to not see the output file?

    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    I believe so, as the OPP works on the output of the Report after the Report has completed execution.
    You could use the same approach as we do for bursting the report to different users. Write a Java Concurrent program based on "oracle.apps.xdo.oa.cp. XMLPReportBurst" with delivery channel Email to send the email output. You would need to add code to launch the Concurrent child request in your AfterReport Trigger:
    function AfterReport return boolean is
    jreq_id number;
    begin
    srw.message (100, 'DEBUG: AfterReport_Trigger +');
    jreq_id:= FND_REQUEST.SUBMIT_REQUEST ('XDO','XDOBURST','','',FALSE,:P_CONC_REQUEST_ID,'Y',chr(0),
    If (jreq_id=0)
    then
    srw.message (100,'Request id is zero');
    end if;

  • Error in BI Publisher when generating excel format

    Hi,
    I was facing an issue in BI Publisher where I was getting this error message when trying to generate the excel format for a report.
    oracle.apps.xdo.template.fo.area.BlockArea.
    BIP Version : Oracle BI Publisher 10.1.3.4.1
    Template used : XSL-FO
    Data source : XML file
    However, if I turn off the "Enable Document Caching" option in the Report node , the excel report is getting generated. The issue is resolved now, but am trying to understand what the issue was and how turning off the cache resolved it.
    If anyone has faced this issue before, and knows the reason - please let me know
    Thanks in advance
    Sujith

    Sujith
    So the doc cache, does just that it caches the document. I assume there might be some issue with caching Excel files. Have to admit I can not reproduce it. Turning cache on and constantly calling for the Excel (either type) is not failing.
    Ahh just noticed that you have an XSL-FO template, can you share it and some data so I test and maybe log a bug?
    Thanks
    Tim

  • XML Publisher Enterprise Edition's report errors

    I have installed XML Publisher Enterprise Edition.when i open it through explorer i can see it's different folder that also have some report as Executive,Financials,HR Manager,Sales Manager,Warehouse Managment.when i try to open reports under these folders as Employee Salary Report under HR it gives error
    "The report cannot be rendered because of an error, please contact the administrator".
    plz help me how i can view these reports.same problem in my own created report.

    Shaun,
    How did get World Sales report work? What did you put on URL? I put:
    http://Sever name:15101/xmlpserver/Sales Manager/World Sales/WorldSales.xml
    It always showed error message to me.
    Please help, Thanks.
    - Jessie

  • Image in generated excel report

    Hi to all,
    I am creating an excel report by following the demo in otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html. However I need to include an image to the excel output. Initially, when I made the layout design in excel, I am able to embed the image through the insert -> picture from file function in excel but when I converted it to HTML and JSP, it was converted as an img tag with a source pointing to an image file in a directory. When I generate the excel report, there is no image and I am left with transparent box that act as a placeholder for the missing image. Does anyone know how the image can be embedded to the excel report when it is generated?
    Thanks in advance for your help.

    Hi swati,
    If we want to display an image which located in sharefolder based on ID, we can refer to the following steps:
    Insert an image in the design surface, select External format as the image source.
    In “Use this image” tab, click the fx button to add the expression like below:
    ="File://" + Fields!FolderPath + "/" + User!UserID + ".jpg"
    The link below is for your reference:
    File URIs in Windows
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Generating Excel report from java by using POI

    Hi
    Im trying to generate the report in Excel using POI. Im retrieving the data from the table. As per my query its having millions of records.
    For example, Im giving the sheet name as below given
    HSSFSheet sheet      = wb.createSheet("SampleReport_01");
    In a single sheet, 65000 records can be displayed. Im checking this condition also. It exceeds 65000 records, the records will be dislayed in the next sheet "SampleReport_02","SampleReport_03" and so on. Im incrementing this count 01, 02 , 03 and so on.
    While generating the report, its giving out of memory exception.
    Can anyone suggest, this is because of huge volume of data? If so, how to handle this one.
    Thanks in Advance
    Dhilip

    your workbook object is in the jvm memory. putting so much data in it while working with it will take memory allocated to jvm.
    better solution is to make a .csv file. Add the data in it with through append (check this [http://www.javacoffeebreak.com/faq/faq0086.html|http://www.javacoffeebreak.com/faq/faq0086.html] ) .
    latter import the .csv file into excel sheet manually.

  • Generating excel reports

    hi,
    can anyone tell me , how to generate a excel report from java. i'm getting data from database using jdbc, with that data i need to create excel report.

    Hartmut,
    Using 1.2.2 Programmatically i want to create a DSN for output excel file.
    You gave me this solution in your previous forums.
    con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};" +"DBQ=c:/temp/test2.xls;DriverID=22;READONLY=false","","");
    But, This works fine with build 1.3.1_02-b02.
    But gives java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too
    long error with build jdk-1.2.2_008.
    Any solution would be appreciated.
    [email protected]

  • XML Publisher Phase 2 Excel template

    Hello,
    I hava a trouble with the embeded XML Publisher in JD Edwards. I need to generete a template to process informatión in MS Excel, and i don't know how.
    Can anyone explain me how can i do that?
    Thanks a lot.

    To create an RTF template use install Oracle XML Publisher Desktop, an add-in to Microsoft Word. To create a PDF template, define a layout in a Word document and then convert it to PDF with Adobe Acrobat Distiller.
    Edited by: dvohra16 on Jan 21, 2010 6:29 AM

Maybe you are looking for