This is 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.
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 must specify the viewer name and the type report source that is being used. In this case, the reportApplicationServer report source is being used.
<crviewer:viewer viewerName="CrystalViewer" reportSourceType="reportApplicationServer" >
The reportName value is prefixed with rassdk:// so that the RAS server can correctly locate the file.
<crviewer:report reportName="rassdk://C:/reports/sample.rpt"/>
| Crystal Decisions http://www.crystaldecisions.com/ Support services http://support.crystaldecisions.com/ |