Report Printing - Excel error

Hi all,
I'm not sure what's causing this error.
With a regular report (not Interactive) region, I have enabled the report printing. All file types open/save correctly except for Excel.
When opening the file, Microsoft Excel actually pops up this error:
File cannot be opened because:
The server did not understand the request, or the request was invalid.
Error processing resource 'http://www.w3.org/TR/xhmtl1/DTD/xhtml1-strict.dtd'.
Line 3, Position 57.
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">If I save the file and try to open it, Excel pops up this error:
This XML file cannot be opened because of an error. Check to make sure the file is a valid XML file, and that the XML syntax is correct.
You can also try re-creating the file and closing other applications before you attempt to open it again.Excel version is Excel 2002 SP3 (v10.x).
Some additional info that might be helpful:
When Excel is opening, the status bar shows it is "Opening HTML.XLA", the shows "Opening {filename}.xls" but fails halfway through that.
Any ideas?
Chris

Hi Chris,
This is the output I get when I click on the Print link
<?xml version="1.0" encoding="UTF-8"?>
<DOCUMENT>
    <DATE>04-AUG-08</DATE>
    <USER_NAME>nobody</USER_NAME>
    <APP_ID>17977</APP_ID>
    <APP_NAME>Test Export</APP_NAME>
    <PAGE_ID>1</PAGE_ID>
    <TITLE>Page 1</TITLE>
    <P1_ROWS></P1_ROWS>
    <P1_GO></P1_GO>
    <P1_REPORT_SEARCH></P1_REPORT_SEARCH>
    <REGION ID="4149756408582108901">
        <ROWSET>
            <ROW>
                <COL1>value1</COL1>
                <COL2>value2</COL2>
                <COL3>value3</COL3>
            </ROW>
            <ROW>
                <COL1>value12</COL1>
                <COL2>value22</COL2>
                <COL3>value32</COL3>
            </ROW>
        </ROWSET>
    </REGION>
</DOCUMENT>Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://www.apex-evangelists.com/
-- http://www.apexblogs.info/

Similar Messages

  • Crystal Reports: Print Engine Error when exporting a report

    We recently upgraded from Crystal Reports 2008 to BusinessObjects Edge Series X3.1. When exporting a report to an excel data-only format we get "Crystal Reports: Print Engine Error". All other formats work fine.  Any help is highly appreciated.
    Thanks,
    Jaseem

    Anyone?

  • CR 2008 Report Printing,hit error "Server Error in '/CRReport' Application"

    Hi
    We encountered Error Message when trying to print Crystal Report 2008 via Windows Internet Explorer.
    "Server Error in '/CRReports' Application."
    Failed to Open Report
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error & where it originated in the code.
    Exception Details:
    "System.Runtime.interopService.COMException: Failed to open report."
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    I really appreciate your feedback.
    Jenny Heng

    Make sure you're using the latest SP:
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Consider adding latest FP also:
    https://smpdl.sap-ag.de/~sapidp/012002523100001024152010E/cr2008_fp24.zip
    Make sure you are disposing of the report object once you are done with it and before you re-run it with new parameters (.close, .dispose).
    Test without the combo box. Let the report prompt. Can you reproduce the behavior now? If not, try to supply the parameter values via a text box. Can you reproduce the issue now? E.g.; is it the combo box that is the issue, or the report?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Crystal Report print layout error during print preview

    Hi Everyone,
    When I try print preview a marketing document, it will work the first time, and then when I try to print preview again it brings up a window asking me to login into the database with the sa username and password.
    When putting in the correct password, the login fails.
    When I click cancel, SAP hangs up and requires a restart.
    All print layouts were done in Crystal Reports, and imported via the report layout manager.
    This occurs on all marketing documents where there is a crystal print layout.
    Anyone will be able to help me with this?
    Thanks
    Best Regards
    Dario Moutinho
    Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PM
    Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PM

    Hi Rahul,
    Your solution worked. Thank you very much.
    I also did not include a stored procedure into the connection that was needed in the layout.
    This could have also added to the problem (for future reference).
    Best Regards
    Dario

  • Multi report print server error

    a apex page has 4 report region and configured Apache FOP for converting report to pdf.
    1) My problem is the print link converts only 1 report region to pdf and i want the whole custom page to convert pdf ?
    2) During the converting the page to pdf want to store the pdf in table ?

    To fix this problem we uninstalled everything related to Hyperion Reports and Adobe Distiller and then reinstalled Distiller, rebooted and then reinstalled Reports.Apparently the install configures itself specifically for the IP address or method (such as DHCP) used when installed.

  • Failed to read data from report file : Reason: Crystal Reports: Print Engin

    Hi,
    When we try to migrate the crystal reports from BO R2 to BO R3, some of the reports are faling with the error:
    Failed to create a new Report.Reason: Failed to read data from report file C:\DOCUME~1\xxxxx.rpt. Reason: Crystal Reports: Print Engine Error
    Would please someone help me in fixing the issue.
    Thanks and Regards,

    Few quick checks to identify the cause -
    1. Are you able to run report in your R2 system?
    2. In XI3.1, check SIA running on which account.
    3. Check the acount have sufficient rights on file system and registry.
    4. What's your web server?
    Give proper rights and import again. Hopefully it will resolve.
    Edited by: Das on Dec 6, 2010 9:47 PM

  • Report printing failed with "Servlet error: An exception occurred. "

    Hi,
    I use Apex 3.1 in Oracle Express edition develop few applications. In one of the application, when I enable report printing in stardard reports and try to print to PDF/Excel, the servlet error occur.
    I had configured FOP in my server and I can download PDF in "interative report", but for stardard report, the report printing failed.
    I can successfully print the reports in my others applications. Anyone know what could be the reason which cause an application failed to print the report.
    Thanks
    Vincent

    Does your application name have special characters? I heard that the app name has to be just letters and numbers for this to work...actually testing right now.

  • Microsoft excel error while exporting a FRS report from Planning to excel

    I have multiple screen shots of the issue.
    are getting issues when within citrix trying to run an FRS report from workspace into excel.
    first they get a windows login window looking for credentials of a User name and a Password.
    the first error:
    "Could not open 'http:SERVERNAME:19000/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/FOLDERNAMEandFILENAME.xls?format=excel.20028viewAs=excel&instanceId=11165278&previewDone=true'.
    second error:
    Microsoft Excel cannot access the file 'http:SERVERNAME:19000/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/FOLDERNAMEandFILENAME.xls?format=excel.20028viewAs=excel&instanceId=11165278&previewDone=true'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another person
    The workbook you are trying to save has the same name as a currently open workbook.
    Third error:
    The file you are trying to open, 'FILENAME.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file do you want to open the file now?
    yes , no, or help
    I am trying to figure out if its a CITRIX issue? An EPM issue? or what
    We have Office 2010 32 bit with smart view and excel add-in.
    Does anybody know why this may occur? I have screen shots I just don't know how to post them.

    When you export a FR report to excel, yes, you will get a prompt for credentials, but as said in 11.1.2 HFR guide, you have to ignore that by clicking "Cancel" and then you will get a second warning pop-up saying "The file you are trying to open, 'FILENAME.xls', is in a different format ........"... Click on "Yes"... you should be able to see the report in excel....
    Both these are known issues in HFR export to excel and you can find them in oracle features guide. And they are not related to Citrix.
    As in Oracle HFR user guide "When exporting a Financial Reporting document to a Microsoft Office format (Excel, Word or PowerPoint), when using Microsoft Office 2007, you may receive the following warning: "The file your are trying to open <filename>, is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?". This warning notifies users that, although the file has an Office extension ( ".xls", ".doc" or ".ppt"), the content of the file is different from the expected (native) Office format. Although Financial Reporting reports are generated in an MHTML format during export, this is not a security concern. Microsoft Office is just warning a user of a file format that is different than expected. Upon selecting “Yes” in the warning, the file will successfully open in Microsoft Office."
    Thanks,
    Siva

  • Printing web report by Excel

    Dear BW people,
    I tried to use the solution of Tobias Kaufmann to print web reports by means of Excel. When I apply this way of working to my report on BW 3.5, it works just fine. ut... when I do exactly the same on <b>BW 3.10</b> no Excel file is generated (though the HTML report refreshes).
    I tried to search a reason for this in debugging mode several times and for several hours and I discussed this issue with colleagues but without any result. Anybody with experience on this topic on a BW 3.10 server? If so, did this work and were some modifications necessary?
    Thank you very much!
    Best regards,
    Bart

    It seems that the two notes in the requirements part is necessary for our BW3.10.
    Still I still have three issues regarding the page setup of a printed Excel sheet. After spending a LOT of time, I was able to solve the problems... Is there a OfficeHTML-BW expert ?
    1° I would like to put filter values in the header of each printed paper. The How To document uses this parameter in the @page section:
    mso-header-data:"&L&0022Arial,Fett0022&12&G&C&0022Arial,Fett0022&14<&[REPTXTLG]> und
    <&[DATAPROVIDER_1/REPTXTLG]>";
    Is there a way to replace the queryname () by filter values?
    2° On the first page the table has columnheaders (normal), but on the second page these headers are not repeated.
    3° Even when I remove the <x:FitWidth>1</x:FitWidth>
    <x:FitHeight>2</x:FitHeight> and the use <x:scale>100</x:scale>, the result of the report is ALWAYS printed (fit to) 1 page. Ofcourse the texts are way to small. How can I make sure the report is printed in a normal way?
    I hope someone can answer at least one of my issues.
    Thanks in advance!
    Best regards,
    Bart

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • FR Report Print Layout Setup for Excel

    Hello All,
    Is there any way to setup the Page Layout for Excel export of the report.The user will export the report from HTML view on Workspace to Excel from File Menu options.After viewing the report in excel the user should be able to directly print the report without setting the page size and all.
    The Page Set Up option seems to be working for PDF but not in excel.
    REgards
    AG

    Hi AG,
    As far as I know, this option is limited to pdf view. It could a nice enhancements in the upcoming versions as I've heard this request many times from various clients.
    Cheers,
    Mehmet

  • Unable to print xml publisher report in excel format in R12

    Hi All,
    We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
    Please let me know how to fix this issue.
    Thanks,
    Raja

    Hi Raja,
    I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
    If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
    Good Luck,
    Lamine Balde

  • Crystal Report Print Control install error

    Hi,
    I'm trying to manually install the crystal report print control active x file. After righ-clicking to install the printcontrol.inf file, i got the following error message; "The INF you selected does not support this method of installation" Any idea why I could not install?
    I am running Windows Vista and have local admin rights.
    Thanks in advance.

    Umm, when I enter the following search terms in the search box at the top right corner of this web page:
    print control activex crystal net
    I get the following KB:
    [1645006  - How to install the Crystal Reports ActiveX Print Control manually?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633343335333033303336%7D.do].
    See if that helps. Note that since you do not mention version of CR, the KB may not be specific to your version of CR, but it should point you in the right direction, no matter what the version.
    - Ludek

  • Report Admin - Print Preview Error

    In reports admin, I get the following error when I select print preview:error marshalling arguments; nested exception is; java.net.SocketException; Socket write failed.Any ideas?

    Hi
    Are you using <b>crystal wave</b>  a third party add  or the crystal report add on provided by SAP.
    1.Are all your user facing same issue ?
    2.Did it happen to only item or it is happening to all ?
    So far looks to me ,some fields have been deleted from template. It might be the cause .
    Hard to troubleshoot if it is coming from addon ...
    Well try restoring a default template (if you have ) or some other layout to test the issue.
    Thank you
    Bishal

  • Error in XXL_FULL_API function module for download report to excel

    Hi all,
    I am using XXL_FULL_API function module for download report to excel, In this FM we have to fill a table called sema        = t_gxxlt_s. in this table we have a fields called
    i_sema-col_no  = 19.
      i_sema-col_src = 19.
      i_sema-col_typ = 'STR'.
      i_sema-col_ops = 'DFT'
    here in 'col_typ' if we put STR in excel it will come as a text but i wnat the time field what i have to pass ?
    and for filed 'col_ops' also ??
    Thaks,
    Sridhar

    Hi sridhar joshi,
    Please check this program
    REPORT Excel.
    TABLES:
      sflight.
    * header data................................
    DATA :
      header1 LIKE gxxlt_p-text VALUE 'Suresh',
      header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    * Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA END   OF t_sflight.
    * Internal table for holding the horizontal key.
    DATA BEGIN OF  t_hkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_h.
    DATA END   OF t_hkey .
    * Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_v.
    DATA END   OF t_vkey .
    * Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
            INCLUDE STRUCTURE gxxlt_o.
    DATA END   OF t_online.
    * Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
            INCLUDE STRUCTURE gxxlt_p.
    DATA END   OF t_print.
    * Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
            INCLUDE STRUCTURE gxxlt_s.
    DATA END   OF t_sema.
    * Retreiving data from sflight.
    SELECT * FROM sflight
             INTO TABLE t_sflight.
    * Text which will be displayed online is declared here....
    t_online-line_no    = '1'.
    t_online-info_name  = 'Created by'.
    t_online-info_value = 'KODANDARAMI REDDY'.
    APPEND t_online.
    * Text which will be printed out..........................
    t_print-hf     = 'H'.
    t_print-lcr    = 'L'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the header'.
    APPEND t_print.
    t_print-hf     = 'F'.
    t_print-lcr    = 'C'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the footer'.
    APPEND t_print.
    * Defining the vertical key columns.......
    t_vkey-col_no   = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no   = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no   = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no   = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    * Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    * populating the SEMA data..........................
    t_sema-col_no  = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
      EXPORTING
    *   DATA_ENDING_AT          = 54
    *   DATA_STARTING_AT        = 5
       filename                = 'TESTFILE'
       header_1                = header1
       header_2                = header2
       no_dialog               = 'X'
       no_start                = ' '
        n_att_cols              = 6
        n_hrz_keys              = 1
        n_vrt_keys              = 4
       sema_type               = 'X'
    *   SO_TITLE                = ' '
      TABLES
        data                    = t_sflight
        hkey                    = t_hkey
        online_text             = t_online
        print_text              = t_print
        sema                    = t_sema
        vkey                    = t_vkey
    EXCEPTIONS
       cancelled_by_user       = 1
       data_too_big            = 2
       dim_mismatch_data       = 3
       dim_mismatch_sema       = 4
       dim_mismatch_vkey       = 5
       error_in_hkey           = 6
       error_in_sema           = 7
       file_open_error         = 8
       file_write_error        = 9
       inv_data_range          = 10
       inv_winsys              = 11
       inv_xxl                 = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    please refer this link
    http://www.thespot4sap.com/Articles/Download_to_excel.asp
    Best regards,
    raam

Maybe you are looking for