sample :
rptAppSession = new ReportAppSession();
rptAppSession.initialize();
ReportClientDocument clientDoc =
(ReportClientDocument) rptAppSession.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
clientDoc.open("test.rpt", 0);
CrystalReportViewer theViewer = new CrystalReportViewer();
IReportSource reportSource = clientDoc.getReportSource();
theViewer.setReportSource(reportSource);
DataDefController ddc = clientDoc.getDataDefController();
ParameterFieldController pfc = ddc.getParameterFieldController();
pfc.setCurrentValues("", "Para1", new String[]{"value1"});
theViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
rptAppSession = new ReportAppSession();
rptAppSession.initialize();
ReportClientDocument clientDoc =
(ReportClientDocument) rptAppSession.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
clientDoc.open("test.rpt", 0);
CrystalReportViewer theViewer = new CrystalReportViewer();
IReportSource reportSource = clientDoc.getReportSource();
theViewer.setReportSource(reportSource);
DataDefController ddc = clientDoc.getDataDefController();
ParameterFieldController pfc = ddc.getParameterFieldController();
pfc.setCurrentValues("", "Para1", new String[]{"value1"});
theViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);