UnknownExportFormat when trying to export Excel format

Hi, I'm getting UnknownExportFormatException when trying to export the crystal report to Excel format. But I can export the
report to Word, PDF or RTF without any problem.
The manifest file of the CrystalReportsRuntime.jar has below information.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_12-b04 (Sun Microsystems Inc.)
Product-Name: Crystal Reports Runtime Components
Implementation-Title: Crystal Reports Runtime Components
Implementation-Version: 12.2.200.454
Implementation-Vendor: Business Objects, Inc.(C)
Can the experts point out whether this version of jar file supports the Excel or not? If not, then whether there is a service pack to fix it. Or which version we need to upgrade to to get this fixed.
Thanks very much in advance.
Eric
Caused by: com.crystaldecisions.reports.exportinterface2.exceptions.UnknownExportFormatException: UnknownExportFormat
     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.for(Unknown Source)
     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(Unknown Source)
     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)
     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
     at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     ... 33 more

We export it from java servlet. But we used ReportExportFormat._MSExcel (which is constant value 2 defined in crystal report SDK) for excel export. As I looked at your code sample in JSP page, I changed the "Excel" value from 2  to 6 which is ReportExportFormat._recordToMSExcel as in the sample code
We have this code snippet to set the export options.     (No change)
             ExportOptions exportOptions = new ExportOptions();
             exportOptions.setExportFormatType(ReportExportFormat.from_int(exportType.getId()));
             exportOptions.setFormatOptions(formatOptions);
And now CRExportType enum is defined as below with value changed from 2 to 6 for Excel.
    WORD("Word",1),
    EXCEL("Excel",6),   //_recordToMSExcel; _MSExcel=2 didn't work with error UnsupportedFormatException
    RTF("RTF", 3), //_RTF
    PDF("PDF", 5); //_PDF
After the change, it did work. So I'm still not clear why _MSExcel didn't work and what's the difference between _MSExcel(2) and _recordToMSExcel (6). But I'm good for now and thanks for your help.

Similar Messages

  • Error when trying to export excel from Chrom

    Hi,
    I get the following error message when i try to export the excel from Chrome browser. Has anyone encountered this error when trying to export from Chrome ? can you please give me the solution. 
    Thanks.
    Error message:
    To export a list, you must have a Microsoft SharePoint Foundation-compatible application

    Hi,
    From your description, when you export a SharePoint list to excel from chrome, you get an error.
    In my SharePoint 2013, when I export a SharePoint list to excel from chrome, it works fine.
    For your issue, make sure the excel client have been installed in your environment.
    To narrow down the issue, I would like to confirm the following information:
    To check whether the issue is related to the browser, I suggest you to do a test in other browsers, such as IE and compare the results.
    What version is your office client? office 2013 or 2010? 32bit or 64 bit?
    Besides, here are some similar posts, you can take a look at:
    http://community.office365.com/en-us/f/172/t/160015.aspx
    https://social.technet.microsoft.com/Forums/office/en-US/5ffbeb9e-6eb1-41c2-8141-edab6039bbde/to-export-a-list-you-must-have-a-microsoft-sharepoint-foundationcompatible-application?forum=sharepointadminprevious
    I am looking forward to your reply back.
    Best regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error message when trying to export pdf to excel

    i keep getting an error message when trying to export a pdf to excel

    Hi ,
    Could you please elaborate more about the issue ?What exactly are you trying to perform and how are you trying to do the same?
    Are you using Adobe Reader or Adobe Acrobat to export PDF to excel?
    What software version are you using?
    Also ,could you please tell what is that error message and it would be wonderful if you could share the screenshot of the error message with us so that we can assist you accordingly .
    I would also like to know what OS do you work on ?
    Is it happening with all kinds of PDF you are trying to convert or any specific one?
    Please update me with above mentioned details so that we can assist you further .
    Regards
    Sukrit Dhingra

  • When trying to export to Excel the tool hangs for 10-15 min. (1.5.1.54.40)

    When trying to export a result set after a query the tool hangs for 10-15 minutes. This is regardless of the export fileformat; xls, html etc. It seems like the problem is related to the complexity of the query: Low-cost query=export OK, High-cost query=Export Not OK (even though the number of returned records is low)
    Exporting to any fileformat from a tables data-tab is OK, the problem occurs only in combination with a query that has been ran in a Worksheet.
    Will be greatful for any hint!
    SQL Developer: 1.5.1.54.40
    Java: 1.5.0_06
    Client OS: XP Prof 5.1.2600 SP 3
    Database: 9.2.0.5.0

    Hi,
    If you are using SQL Dev 1.5.1, you can include the column header by using
    CTRL + Shift + C (instead of CTRL + C), and paste it to Excel.
    I got this info from other forum, sorry I couldn't find which one.
    Don't use the Edit - Copy Path menu, even it uses the same shortcut.
    Regards,
    Buntoro

  • "An error occurred sending the command to the application" When trying to open excel document from outlook 2007

    Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
    OS: Windows Server 2008 R2
    If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
    Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Getting an error message when trying to export from the Lightroom 5.7.1

    hi
    i'm getting an error message when trying to export the images from the Lightroom, all the images are on the external drive
    i'm using windows 7 with 4gb of ram core i5
    "AN INTERNAL ERROR HAS OCCURRED WIN32 API ERROR2 ("THE SYSTEM CANNOT FIND THE FILE SPECIFIED.")WHEN CALLING SHELLEXECUTEXW FROM AGWORKSPACE.SHELLEXECUTE"

    i found the answer my myself
    post processing was blank that was causing it  to happen

  • Hi, i get the error -49 when trying to Export a Movie edited in iMovie and recorded with Elgato Video Capture anyone know why i get this Error and can help me?

    Hi, i get the error -49 when trying to Export a Movie edited in iMovie and recorded with Elgato Video Capture anyone know why i get this Error and can help me?

    Read this
    http://support.apple.com/kb/ts1583

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • Premiere Pro CC crashes when trying to Export Media

    I really hope someone can help me with this.
    I bought a brand new Dell XPS 15 because I will be studying multimedia production next year. Next week I'm registering for the art school and I'll be able to buy a CC student license. I installed the Creative Cloud Trial Version because I couldn't wait to check out the new features in Photoshop and Premiere Pro. However after working on a Premiere Pro project for several hours, the program crashed when trying the Export>Media function.
    As soon as I hit Export>Media in every project I make in Premiere Pro, the following dialog box pops up: "Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project.". I'm not able to export my project, not even by using the keyboard shortcut Ctrl+M.
    I already tried reinstalling Creative Cloud, without any luck. Any idea what could be causing this? I really need this fixed before school starts, so help is much appreciated.
    Here are my system specs:
    - Intel Core i7-4712HQ processor
    - 16GB DDR3L RAM
    - Nvidia GeForce GT750M 2GB
    - 500GB SSD
    Thanks to everyone willing to take a look at my problem.

    Hi John,
    Thanks for your response. I checked all those links but I'm afraid none of those solves my problem. My GPU drivers are up to date and changing BIOS settings to fixed to disable Nvidia Optimus doesn't work as well.
    I checked Windows Event Viewer and the error shows as following:
    EventData
    Adobe Premiere Pro.exe
    8.0.0.169
    536f4f89
    MSVCR110.dll
    11.0.51106.1
    5098826e
    c0000409
    00000000000740c4
    21b4
    01cf994108252059
    C:\Program Files\Adobe\Adobe Premiere Pro CC 2014\Adobe Premiere Pro.exe
    C:\Windows\SYSTEM32\MSVCR110.dll
    a2ad4021-0534-11e4-8260-e82aea8638f9

  • Error code = -32766 when trying to export to flv

    I get that error when trying to export to flv using iMovie 08, any idea why I am getting this error?

    iMovie 7 allows export to YouTube accounts that would generate a .flv file but I believe that conversion to Flash is still handled by the YouTube upload.
    Long ago Macromedia (now Adobe) offered a Flash Exporter that, when installed, added the option to export to Flash Video from any QuickTime aware application. You may have moved that old component from a previous install to a newer machine.
    I don't think it has ever been updated to run native on Intel Macs so you would need to run the app under Rosetta.

  • I have created a DVD via iMovie and burned several copies. When played the DVD's will stop and display a message SKIPPING DAMAGED Part. It is not the DVD. When trying to export the project, I get an error message.

    I have created a DVD via iMovie and burned several copies. It is a large file. When played the some DVD's will stop and display a message SKIPPING DAMAGED Part but will not resume. Some work fine.  It is not the DVD. I have burned from several batches. When trying to export the project, I get an error message with the following message: The project could not be prepared for publishing because an error occured (-108).

    TV video typically is copyrighted content.  We'd be breaking several rules trying to help you.  Good luck!

  • Iphoto stopped working when trying to export to facebook.  iphoto is froze open with flip down for exporting.  Neither will respond.  Any ideas on how to fix this?

    iphoto stopped working when trying to export pictures to facebook - iphoto page and export flip down froze open -  cannot do anything with them - any idea what's wrong or what I can do to fix this?

    Force Quit iPhoto (Use Force Quit under the Apple Symbol in the upper left of this page). If you continue to have problems please re-post in the iPhoto's forum, it's located at:
    https://discussions.apple.com/community/ilife/iphoto

  • IPhoto crashing when trying to export pictures

    iPhoto crashing when trying to export pictures

    Trash the HP Plug in from /Library/Application Support/iPhoto
    There are two libraries where this plugin might be
    HD/ Library
    and
    HD/Users/Your Name / Library
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    as well as within the Application package
    /Applications/iPhoto.app/Contents/ 

  • When trying to export a pages document, it say error while printing....

    When trying to export a pages document, it says 'error while printing' when I want to save as PDF. I used to be able to do it but for some random reason it won't let me anymore. Even when the printer is not plugged in or turned on it says it. Is there a setting I can change? Does anyone know how to fix as i can't email any documents and I don't know what else to do. Please help its driving me crazy.....
    imac Intel-core duo   Mac OS X (10.4.8)  

    thank you, I can't print or save any old pages documents. I will create a new one and see if that helps. I have tried from the print dialog but it says the same thing. I will try something in another application. Could it have been when I updated pages? I only recently got broadband so did a heap of updates that were a bit overdue.

  • Lightroom 2.6 freezes when trying to export images

    I have been using LR successfully on a Windows XP machine for several years and using version 2.6 for the past several weeks . As of a few days ago, LR would freeze when trying to export images. The export functions of 'Export with Previous' and 'Export with Preset' seem to work without crashing LR but most of my exporting needs me the ability to adjust the export settings. Any advise?

    I would guess LR only goes by drive-letter so if you've kept that the same it should be ok.  Look for something else.
    I would look in your Lightroom Preferences files to see if there is any drive letter that no longer exists.
    On Vista/Win7 my LR prefs file is in:
    C:\Users\[user name]\AppData\Roaming\Adobe\Lightroom\Preferences
    XP has something similar under C:\Documents and Settings\Local Settings (or Application Data)
    If you open that file in a simple text-editor like NotePad then about halfway down (at least in mine) there are some export-related things that include the drive-letter and path on your hard-drive to various folders.  You can find it by searching for:
    AgMRUPopupList_AgExport_destinationFolderPathPrefix
    Look through those and see if any of the drive-letters or paths are wrong and look around for other paths.  The paths will contain
    or
    instead of \ because the low-level language routines LR is written with need it that way so if you change anything, keep the number of slashes consistent.
    It could very well be that there is nothing wrong with any of the paths, so another approach would be to rename or move your preferences file to see if LR will recreate it with defaults for everything, and see if that clears up the lockups. 
    Whether you decided to edit or rename your preferences file, please make a backup copy so you can put it back in case something even worse happens and you need it back.

Maybe you are looking for