naltu
July 28th, 2005, 07:09 AM
Hi ,
I am using crystal report 9.0,
I want to export report to excel,But I am unable to Export any format.
.
I am receiving the Error.when I trying to export the report into PDF
Error:::::
com.crystaldecisions.report.web.viewer.ReportExportControl
com.crystaldecisions.reports.a.a: method (Ljava/util/Properties;)V not found
And When I trying to export report into Excel
Error ::
com.crystaldecisions.report.web.viewer.ReportExportControl
Invalid post back event : {0}
My jsp Page is look like this
<%@ page
import="com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.exportoptions.*,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions.sdk.occa.report.reportsource.*" %>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../../theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>TestExport.jsp</TITLE>
</HEAD>
<BODY>
<% String report = "/sbw/rptfiles/RPTForCROWN/StoragevrsBilledrpt.rpt" ;
IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
ReportExportControl exportControl = new ReportExportControl();
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(ReportExportFormat.MSExcel);
//RTFWordExportFormatOptions XLExpOpts = new RTFWordExportFormatOptions();
//PDFExportFormatOptions XLExpOpts = new PDFExportFormatOptions();
ExcelExportFormatOptions XLExpOpts = new ExcelExportFormatOptions();
XLExpOpts.setStartPageNumber(1);
XLExpOpts.setEndPageNumber(3);
exportOptions.setFormatOptions(XLExpOpts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
exportControl.dispose();
%>
</BODY>
</HTML>
Any one can Help me its very urgent for me.
I am using crystal report 9.0,
I want to export report to excel,But I am unable to Export any format.
.
I am receiving the Error.when I trying to export the report into PDF
Error:::::
com.crystaldecisions.report.web.viewer.ReportExportControl
com.crystaldecisions.reports.a.a: method (Ljava/util/Properties;)V not found
And When I trying to export report into Excel
Error ::
com.crystaldecisions.report.web.viewer.ReportExportControl
Invalid post back event : {0}
My jsp Page is look like this
<%@ page
import="com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.exportoptions.*,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions.sdk.occa.report.reportsource.*" %>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../../../theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>TestExport.jsp</TITLE>
</HEAD>
<BODY>
<% String report = "/sbw/rptfiles/RPTForCROWN/StoragevrsBilledrpt.rpt" ;
IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
ReportExportControl exportControl = new ReportExportControl();
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(ReportExportFormat.MSExcel);
//RTFWordExportFormatOptions XLExpOpts = new RTFWordExportFormatOptions();
//PDFExportFormatOptions XLExpOpts = new PDFExportFormatOptions();
ExcelExportFormatOptions XLExpOpts = new ExcelExportFormatOptions();
XLExpOpts.setStartPageNumber(1);
XLExpOpts.setEndPageNumber(3);
exportOptions.setFormatOptions(XLExpOpts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
exportControl.dispose();
%>
</BODY>
</HTML>
Any one can Help me its very urgent for me.