This sample shows you how to use the Viewer Tag Library to display a report using an unmanaged Report Application Server.
<%@ taglib uri="/crystal
Note: You can specify any name for the prefix attribute. This just determines what tag prefix you use to access the tag library's tags.
clientSDKOptions.xml
file.This file is used to set the location of the RAS server.
<%
System.setProperty("ras.config","C:\\temp");
%>
Note: You can also set the location of the clientSDKOptions.xml
file in the classpath.
In this tag, you specify the viewer name and the type of report source. In this case, the report source type is the reportApplicationServer.
<html>
<body>
<crviewer:viewer viewerName="CrystalViewer" reportSourceType="reportApplicationServer" >
The reportName value is prefixed with rassdk://
so that the RAS server can correctly locate the file. The rassdk://
prefix indicates that the specified path is on the machine where the RAS SDK is running.
<crviewer:report reportName="rassdk://C:\\reports\\sample.rpt"/>
The JSP page is now ready to view the sample.rpt report.
</crviewer:viewer>
</body>
</html>
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |