Exception : Export To Excel using POI in ADF

Hi,
When i am using POI jars for export to Excel functionality I ma getting the following Exception.
Actually page contains simple button .When user clicks on the button i am getting the values from the iterator and then exporting those values to the Excel using POI.
javax.faces.el.EvaluationException: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: org.apache.xmlbeans.XmlOptions Dependent class: org.apache.poi.POIXMLDocumentPart
Loader: current-workspace-app.web.ExportToExcelPOC-ViewController-webapp:0.0.0
Code-Source: /C:/Documents and Settings/dtamarap/Desktop/export/poi-bin-3.6-20091214/poi-3.6/poi-ooxml-3.6-20091214.jar
Configuration: <classpath> in C:\Durga\Jdev\jdevstudio10133\jdev\mywork\ExportToExcelPOC\ViewController\public_htmlT
he missing class is not available from any code-source or loader in the system. at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406) at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019) at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451) at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85) at test.ExportToExcel_jspx._jspService(_ExportToExcel_jspx.java:57) [test/ExportToExcel.jspx] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at
.............................

When you run your application, it is complaining that it cannot find a class. That class is part of Apache XMLBeans (http://xmlbeans.apache.org/). You need to ensure that you get the XMLBeans JAR file and include it in your project, just like you did for the Apache POI JAR file.
John

Similar Messages

  • Chinese csv file export to excel using POI

    Dear all,
    I would like to read the csv chinese data to excel using POI in java but the character in excel is corrupted. How can I solve it? Please help me. Thank you!
    Regards,
    kzyo

    Use the correct encoding for the reading and writing streams.

  • Not finding Excel file when Excel Export is done using POI API

    Hi gurus,
    I am creating a simple application which is having a simple table, and I want to export that table to Excel through POI API's. I followed the Exporting Data from Web Dynpro In Different Formats Using Open Source (POI, JExcel, iText) APIs pdf.
    I can't find the popup window to save to my computer. I checked in server C drive also but its not present over there also.
    Please help in saving that file to local pc. I populated some success messages. It might help to suggest the correct way.
    1.outputStream.toString() :
    ÐÏࡱá;þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿu20ACWorkbookÿÿÿÿÿÿÿÿÿÿÿÿ^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÓÌAá°ÁâpmSAPServiceID6                                                                                B°a=u0153¯¼=h:¾#8X@uFFFD"u2022Ú1ÈÿuFFFDArial1ÈÿuFFFDArial1ÈÿuFFFDArial1ÈÿuFFFDArial"$"#,##0_);("$"#,##0)!"$"#,##0_);[Red]("$"#,##0)""$"#,##0.00_);("$"#,##0.00)'""$"#,##0.00_);[Red]("$"#,##0.00)7*2_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_).))_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)?,:_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)6+1_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)àõÿ À àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ àõÿ ôÀ à À à+õÿ øÀ à)õÿ øÀ à,õÿ øÀ à*õÿ øÀ à õÿ øÀ u201Cu20ACÿu201Cu20ACÿu201Cu20ACÿu201Cu20ACÿu201Cu20ACÿu201Cu20ACÿ`u2026¬
    Table Contentsu0152®ü3PONoStatus10new20planning
    ÿ p » ÌÁ dü©ñÒMbP?_*+u201Au20AC%ÿuFFFDÁu0192u201E¡"d,,à?à?Uu20ACu20ACu20ACý ý ý ý ý ý × uFFFD(>¶@ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    Here I am having these values in my table. Table 1st column header: PONo, 2nd column header: Status.
    and the Values are 10-new, 20-planning.
    I am getting the table information.
    2.outputStream.toByteArray().toString():
    [B@d689d
    3.resource.gerUrl(1) :
    ../../sap.com/local~mainexcel/ExcelApp/~wd_key32_1223730501316/ResourceName.xls?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=aa81af93979511ddca5900110a9d0ac5&sap-wd-appwndid=aa81af94979511dd832000110a9d0ac5&sap-wd-norefresh=X
    Here this is the URL which is having ResourceName.xls file.
    But I couldn't find where its saving the file. weather its saving the file?
    I observed for the first click its doing some 2sec's process.(I think its saving some where).
    For second click its taking some lengthy process ( i don't know how much time its taking, because i waited for almost 5 hours, but nothing shown up).
    Thanks in advance
    Edited by: Venkata Kishore Thota on Oct 11, 2008 4:32 PM

    Java doesn't care what the file extension is.
    The MIME type needs to be correct or you cannot expect the file to be loaded correctly.

  • Header of ALV with space when exported to excel using Standard ALV

    Hi,
    I am Using Reuse alv grid display    to dispaly my report and it works fine and I am using the standard SAP application tool to export it to excel.
    But for some of the header fields I am getting space in the excel sheet but there is no space while displaying through ALV.
    I am using the following field catalog for the same.
    wa_fieldcat-col_pos = 10.
      wa_fieldcat-fieldname = 'SOLLWERT'.
      wa_fieldcat-seltext_l  = 'text-t10'.      "Target value (* this has no space here)
      wa_fieldcat-outputlen = 32.
    wa_fieldcat-colwidth_optimize = 'X'.
      APPEND wa_fieldcat to it_fieldcat.
    but there are still space for this Colomn when exported to excel if after optimizing the column.
    kindly suggest what field needs to be passed to the field catalogoe to avoid spaces in excel for the header.
    Thanks
    Ritesh

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Export to excel using value set

    Hi all,
    I have an ALV table and in some columns I show the texts defining value_set (set_attribute_value_set). When I export the table to Excel using the standard button in the file I can see the codes, not the defined texts. How can I solve it? I thought about defining additional columns which will contain the texts and will be invisible in the screen and visible in Excel sheet instead of the column with codes, but I would like to know if there is any easier solution.
    Thank you,
    Anna

    Hi
    You can use Filedownload control to download the content you prepare as XML
    reading the context.
    For Ex: if you have product ID, Product Name and price as attributes.
    you can create the XML string as
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <products>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    </products>
    copy paste this in note pad name the file as products.xls and open it in MSXL.
    similarly you can read the context and form this xstring and just supply to filedownload control.
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Reports output delayed when exported to Excel using OLE2

    Hi All,
    Platform - Oracle Application Server 10g Release 2 10.1.2.3 on Windows 32 bit.
    The report output is getting generated in a minute when exported to PDF i.e destype=cache & desformat=pdf. When we generate the output to excel is considerably delayed. It is taking time and internal server error is occuring.
    1) Report developed with simple query
    2) Used RPT2XLS procedure which uses OLE2 builtin to export report output into excel.
    3) Called RPT2XLS.run procedure in After-Report trigger of the report.
    4) We have relased all memory objects in the RPT2XLS package after exporting data and there is no EXCEL.exe running once the file is generated.
    System parameters used in the URL.
    . destype=file
    desformat=pdf
    CONTAINSOLE=yes (Required for exporting OLE2 objects into Excel in report)
    desname=path & name of the file.
    I have gone through the tuning documents for reports server and increased minengine, maxengine and initengine parameters of the reports engine and also changed maxconnect and IdleTimeout parameters in reports server configuration file.
    What might be the reason for delaying in the output of the reports when exported to Excel. Can the guys with special knowledge on this area help us in getting out of this issue.
    Thanks in advance.

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Exporting into Excel Using the Dynpro Binary Cache is not working on NW04s

    Hello,
    I am using excel data export using the
    "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" guide at
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353">this link</a>.
    The tutorial is working on NW04 but when I use it on NW04s I receive errors for the StringBuffer object:
    java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
    Any ideas?

    Hallo Roy,
    I have created an updated/enhanced version of this tutorial running on NW 7.0. The new solution allows to open the exported Excel File instantly without opening a popup window befor:
    See <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>.
    <b>NOTE:</b>
    Use <b>LinkedHashMap</b> instead of <i>HashMap</i>
      private Map getProductColumnInfos() {
        Map columnInfosMap = new LinkedHashMap();
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
        columnInfosMap.put(
          IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
          "Total Per Article In Euro");
        return columnInfosMap;
    This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
    Regards, Bertram

  • Export to excel using service for office 2007

    Hi All,
    I am using a service to download the opport search result data into excel. Inside the code, it gets all the data and opens one window of excel download and closes automatically after few second. And finally does not download anything.
    It is working for office 2003, not for office 2007.I am following piece of code.Please help me how to achieve the same.
    DATA: l_xstring TYPE xstring,
          app_type type string,
          app_type_c(50) type c.
    app_type = 'APPLICATION/MSEXCEL; charset=utf-16le'.
          app_type_c = app_type.
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
              text     = output      "my data to be exported into excel
              mimetype = app_type_c
            IMPORTING
              buffer   = l_xstring.
          CONCATENATE  cl_abap_char_utilities=>byte_order_mark_little
                       l_xstring
                       INTO l_xstring IN BYTE MODE.
    server->response->set_header_field( name =  'content-type'
                                        value = app_type ).
    server->response->delete_header_field( name = if_http_header_fields=>cache_control ).
    server->response->delete_header_field( name = if_http_header_fields=>expires ).
    server->response->delete_header_field( name = if_http_header_fields=>pragma ).
    server->response->set_header_field( name = 'Content-Disposition'
                                        value =  'attachment;filename=Opportunity_Result.xls'  ).
    CLEAR lv_length.
    lv_length = XSTRLEN(  l_xstring ).
    server->response->set_data( data =  l_xstring
                                 length = lv_length ).

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Export to excel using MDM WebDynPro Configurator

    Hi,
    I am developing an application using MDM WDC and need to display Export to excel button with corresponding functionality.Is there an API available to do the same? Is it possible to get the search results details in the excel sheet while using MDM WDC?
    version used is MDM  7.1 SP06 and NWCE 7.2 .
    Regards,
    Apoorva Dave

    it is standard function of mdm wd component.
    we are in MDM 7.1 SP5, the api only gives you the string of  the selected record in xml format.
    i am using xslt to transform the xml as user are not happy with the standard export.

  • Export to Excel using URL in Discoverer Plus

    Using Discoverer 4i Plus.
    Using URL arguments I want to export to Excel automatically. I see that if I was using Discoverer Viewer it would be something like fm=xls. Is there similar code for doing this with Plus?
    Thanks!

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Testing export to excel using Selenium.

    I am trying to test export to excel functionality in selenium. I want to get the Id of the pop-up(save file) dialog. Is there a way to get page source of this pop-up dialog.

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Error with Crystal 2008 Exporting MS Excel using ReportExportFormat.MSExcel

    Hi
    </br>
    </br>
    I am using the sample code that comes with the Eclipse plug-in. I have modified it slightly to also write to different formats and then display in the viewer. I am able to write to all formats except to the MSExcel (MSExcel data only works without issue)
    </br>
    </br>
    <p>
    I am using the following code (this is just proof of concept code)</br>
                    //jtds connection and database logon setup already</br>
                    //report parameters etc setup already</br>
                    try</br>
                    {</br>
                         String file_name = reportClientDocument.displayName() + System.currentTimeMillis();</br>
                          file_name = file_name + ".xls";</br>
                          String location = "c:
    temp
    ";</br>
                          FileOutputStream fos = new FileOutputStream(location + file_name);</br>
                          </br>
                          ByteArrayInputStream byteArrayInputStream;</br>
    </br>
                          byteArrayInputStream = (ByteArrayInputStream) reportClientDocument</br>
                                  .getPrintOutputController().export(ReportExportFormat.MSExcel);</br>
    </br>
                          byte[] byteArray = new byte[1024];</br>
                          int bytesRead;</br>
                          while((bytesRead = byteArrayInputStream.read(byteArray)) != -1) </br>
                          {</br>
                               fos.write(byteArray, 0, bytesRead);     </br>
                          }</br>
    </br>
                          fos.flush();</br>
                          fos.close();</br>
                          setReportSource ();</br>
                    }</br>
    </p>
    </br>
    <p>
    Console/Error Output:
    Crystal Reports Viewer 12.0.0.0
    java.vendor = Sun Microsystems Inc.
    java.version = 1.5.0
    os.name = Windows XP
    os.version = 5.1
    os.arch = x86
    log4j:WARN No appenders could be found for logger (com.crystaldecisions.reports.formatter.formatter.lightmodel.cellmodel.FCMCellModel).
    log4j:WARN Please initialize the log4j system properly.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: IllegalArgumentExceptionWithMessage---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:237)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)
         at com.businessobjects.samples.SampleViewerFrame.showReport(SampleViewerFrame.java:145)
         at com.businessobjects.samples.SampleViewerFrame.showViewer(SampleViewerFrame.java:98)
         at com.businessobjects.samples.SampleViewerFrameClient.main(SampleViewerFrameClient.java:17)
    Caused by: com.crystaldecisions.reports.common.GeneralException: IllegalArgumentExceptionWithMessage
         at com.crystaldecisions.reports.exporters.excel.libs.escher.p.<init>(SourceFile:149)
         at com.crystaldecisions.reports.exporters.excel.libs.escher.BlipChecksumGenerator.a(SourceFile:47)
         at com.crystaldecisions.reports.exporters.excel.libs.escher.ad.a(SourceFile:93)
         at com.crystaldecisions.reports.exporters.excel.libs.escher.af.a(SourceFile:186)
         at com.crystaldecisions.reports.exporters.excel.libs.escher.EscherDocumentForExcel.a(SourceFile:119)
         at com.crystaldecisions.reports.exporters.excel.libs.escher.EscherDrawingSheetForExcel.a(SourceFile:283)
         at com.crystaldecisions.reports.exporters.excel.libs.biff.xlsDOM.ExcelWorksheet.a(SourceFile:251)
         at com.crystaldecisions.reports.exporters.excel.formatter.cm.ExcelCMGraphicsObjectFormatter.a(SourceFile:167)
         at com.crystaldecisions.reports.exporters.excel.formatter.Excel97ExportFormatter.a(SourceFile:193)
         at com.crystaldecisions.reports.exporters.excel.formatter.Excel97ExportFormatter.a(SourceFile:169)
         at com.crystaldecisions.reports.exporters.excel.formatter.Excel97ExportFormatter.a(SourceFile:110)
         at com.crystaldecisions.reports.exporters.excel.Excel97Exporter.processFormattedContent(SourceFile:213)
         at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:104)
         at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
         at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
         at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)
         ... 6 more
    Any help will be greatly appreciated, this seems as if its a bug though.
    </p>
    Edited by: Kabir Bray on Nov 2, 2010 4:26 PM

    I know this has been marked as answered, but I would just like to mention when designing reports for Excel output, the key thing
    to remember is the design and layout of your report. You have to work on a strict grid layout concept, and make sure all items are
    lined up 100% else columns or rows are inserted in strange places, making the output look very ugly. But if you can line everything
    up nicely then I believe any report that can be displayed in Excel.
    Keeping in mind that if the report is to be output as Excel the whole design and logic must be geared for this, so page headers
    and footers are no longer relevant, in fact the whole "page" concept must be ignored when working with Excel as there are
    no pages in a spreadsheet application like Excel.
    That all being said, I dont know what your reports are about and am not saying they are not too complex for Excel,
    just wanted to make a note so that people dont think Excel output using CR4E is a bad option.

  • Export to excel using deski report

    Hi,
    We are using BOXIR2 SP4 version. We have a deski report that generates excel output file and it was working fine until yesterday. Today that report successfully exported excel output file, but I was not able to open excel file and it gives me below error:
    Excel found unreadable content in 'abc.xls'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
    Now, if I select Yes, then it opens blank sheet.
    I found that today there was a new record in the report for new customer. When I filtered out that customer record it works fine. So I thought may be something wrong with that customer.
    After that I filtered out 10 existing customers and then also I was able to open excel sheet with new customer record as well. So, I tried few other things to resolve the issue, if I reduce the length of Customer_name field from 35 to 30 by using SubStr(), it works fine. If I add a new field Customer ID to the left of Customer_name field, it works fine.
    This is a strange issue. I have suggested our client the above option that have worked. But if client is not OK with it, I will still have to find the root cause and resolve this issue.
    Please advise.
    Thanks,
    Nikhil

    with your product version there are little options you have.
    1. Upgrade to the latest SP and patch on XIR2 (SP6, fp6.4) and re-test
    2. Upgrade to current product release.
    3. figure out what has changed and how in the report and reverse those changes.

  • "Excel found unreadable content in" The Problem is text in a clob exported to excel uses - Left single quotation mark -Right double quotation mark.

    Here are the ASCII char being used.
    145 221 91 10010001 ‘ &#145; &lsquo; Left single quotation mark
    146 222 92 10010010 ’ &#146; &rsquo; Right single quotation mark
    147 223 93 10010011 “ &#147; &ldquo; Left double quotation mark
    148 224 94 10010100 ” &#148; &rdquo; Right double quotation mark
    149 225 95 10010101 • &#149; &bull; Bullet
    150 226 96 10010110 – &#150; &ndash; En dash --
    The default CHAR NOW is a black diamond with ? in middle in stead of 'Right double quoation mark' and others.
    The Text used is copied from documents user's get
    so someone is putting in I think what is called ALT ascii. This data has been used for years
    some updates where put in the system, I don't know details.
    The following error started you click YES and the XLS has alot of data missing not just the CLOB.
    Excel found unreadable content in ‘file-name’.
    Do you want to recover the contents of this workbook?
    If you trust the source of this workbook click yes.
    I can copy the text then load it into the a column in a xls. 
    I am exporting the spreadsheet from TOAD it wasn't updated so
    it has to be with the EXCEL. I tried changing the ENCODING in EXCEL but that
    didn't work.

    I'm not familiar with TOAD, could you please let us know how did you export data from TOAD to Excel?
    Based on your description, it should be an encoding problem, have you tried to change the encoding as 'UTF-8' ?
    Wind Zhang
    TechNet Community Support

  • Export to Excel using a single format file as a template

    Can I use a single PDF file with form fields as a template to export several other similar PDF files (without fields) to excel?
    I scanned in several report files with the same table format but different data values and wanted to export this data into excel.

    Not possible.

Maybe you are looking for

  • Text font not going to web page defaults

    Firefox appears to be using the "options" font type and color, rather than the web page font and color, despite the box being checked to allow the web page font to override the options font

  • Jabber for Windows 9.2.2 Client - No Meetings on Options

    We have an on prem deployment of CUPS 8.6.4 with Jabber for Windows clients. Everything is working as desired with the exception that we don't have the "Meetings" available under File > Options. Here's what my jabber-config.xml file reads. Everything

  • How to define a hyperlink in pdf to "file:///sdcard/myapp/mydoc.pdf"?

    I develop an Android app displaying pdf documents that are located in sdcard-directory. Within these master documents I would like to include hyperlinks to documents in a subfolder. Something like "file:///sdcard/myapp/sub/mydoc.pdf" Is this possible

  • No such method error when migrating to 10.3.2

    Howdy! I am migrating a Portal application from 10.0.2 to 10.3.2 and getting the following exception when trying to access any page of the app. The app is using a home grown URI re-write mechanism that worked successfully in 10.0.2 environment. Thank

  • IPhone in the Toilet... literally.

    My friend and I sat in line and got our iPhones on the same day... release day. Last Friday he walked into the bathroom and saw his iPhone in the bottom of the toilet. His one-year-old little girl likes to throw things in the toilet. He walked back i