hi, how can i run crystal report 5 and 6 in java. i've java code which runs crystal repo 9/10/11 but when i tried to open report 5/6 ver it gave error
its giving error that you have older version file can't open. is there any way to open crystal report 5/6 file using java/jsp code?
code:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*,com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.*, com.crystaldecisions.sdk.occa.report.data.*, com.crystaldecisions.sdk.occa.report.reportsource.*, com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
<%
ReportClientDocument clientDoc = new ReportClientDocument();
//open the Report
//clientDoc.open("Crystal Report - Converting Number to Words.rpt", 0);
CrystalReportViewer crv = new CrystalReportViewer();
JPEReportSourceFactory jrsf = new JPEReportSourceFactory();
IReportSource reportSource = (IReportSource)jrsf.createReportSource("Crystal Report - Converting Number to Words.rpt",request.getLocale());
crv.setReportSource(reportSource);
//crv.setReportSource(jrsf.createReportSource("RevAnalAdvice of Credit - Meter Pay & Display Rpt.rpt",request.getLocale()));
//crv.setReportSource(jrsf.createReportSource("AutoPound.rpt",request.getLocale()));
ReportExportControl exportControl = new ReportExportControl();
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(ReportExportFormat.PDF);
PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(pdfexpopts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
//crv.processHttpRequest(request, response,application, null);
//exportControl.dispose();
crv.showFirstPage();
crv.dispose();
%>
thanx in advance
running crystal report 5/6 in javahi, how can i run crystal report 5 and 6 in java. i've java code w
Page 1 of 1
1 Replies - 2600 Views - Last Post: 01 March 2009 - 05:46 PM
Replies To: running crystal report 5/6 in java
#2
Re: running crystal report 5/6 in java
Posted 01 March 2009 - 05:46 PM
Are you sure you are talking Java here ?
Looks more to me like a Javascript problem
Are you sure you are in the good forum ? This is the Java forum not the Javascript forum.
Looks more to me like a Javascript problem
Are you sure you are in the good forum ? This is the Java forum not the Javascript forum.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|