Skip to Content
0
Former Member
Mar 05, 2009 at 09:21 AM

crystal report 2008 使用的问题

49 Views

刚刚接触crystal report,在2008试用版上测试开发的时候,在sap社区下的例子:

<%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,

com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,

com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"

%><%

String reportPath;

Object reportSource;

ReportClientDocument reportClientDocument;

reportPath = request.getParameter("report_path");

reportClientDocument = new ReportClientDocument();

reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);

reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);

reportSource = reportClientDocument.getReportSource();

session.setAttribute("ReportSource", reportSource);

reportClientDocument.close();

response.sendRedirect("viewer_frame.html");

%>

但是在本地编译的时候,老是报错

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /Java_CRJ12_Web_View/java_crj12_web_view.jsp

Generated servlet error:

D:\Tomcat 5.0\org\apache\jsp\Java_005fCRJ12_005fWeb_005fView\java_005fcrj12_005fweb_005fview_jsp.java:71: cannot resolve symbol

symbol : variable inprocConnectionString

location: class com.crystaldecisions.sdk.occa.report.application.ReportClientDocument

reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);

^

1 error

类com.crystaldecisions.sdk.occa.report.application.ReportClientDocument所在的jar包rasapp.jar已经引入