这是旨在说明如何使用查看器标记库来显示使用 Java Reporting Component 的报表的基本实例。
同时必须确保相应的 JAR 文件和附加支持文件都存在。
<%@ taglib uri="/crystal
注意: 可以为 prefix 属性指定任何名称。prefix 确定要使用什么标记前缀来访问标记库的标记。
在此标记中,指定查看器名称和报表源的类型。
<html>
<body>
<crviewer:viewer viewerName="CrystalViewer" reportSourceType="reportingComponent" >
此标记指定要显示的报表以及要用于缓存报表源的会话变量。
注意: 使用 Java Reporting Component 时必须始终缓存报表源。
<crviewer:report reportName="/reports/sample.rpt"/>
JSP 页面现在即可查看名为 sample.rpt
的报表。
</crviewer:viewer>
</body>
</html>
Business Objects http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/services/services.htm |