on 05-05-2009 8:51 AM
Hi,
I have a java application that uses Crystal Report JRC (CR4E) to generate and export reports to different format.
My code successfully generated reports in formats like PDF, RTF, CSV, and RPT. But I still need to format to MS Excel and paginated text format. Although there are MSExcel and Text formats available from ReportExportFormat, I cannot use it successfully. Here is how I export:
...
int format = ReportExportFormat._MSExcel;
InputStream inputStream = reportClientDoc.getPrintOutputController().export(ReportExportFormat.from_int(format));
...
I got this error:
2009-04-30 12:22:39,328 ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - Export format is not known/supported 2009-04-30 12:22:39,343 ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - JRCAgent1 detected an exception: Export format is not supported or not recognized
How I can export to MS Excel without creating a report on web first? Is ReportExportFormat._MSExcel really not supported? I am using the com.businessobjects.sdks.jrc.11.8.0_11.8.8.v1541 from CR4E.
Hi Tej, thanks for the answer but still the same error when I tried MSExcel.
Just wondering, have you successfully exported a report to MSExcel format? Can you share how you did it? I do not have a Crystal server. I am only using the JRC jars from CR4E plugin.
Thanks,
Bel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
On CR4E V2.0 ReportExportFormat.recordToMSExcel worked out fine at my end.
This exports a report to Excel ( Data Only).
Regards,
Neeraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use MSExcel instead of _MSExcel
Thanks,
Tej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.