Viewing a report using an unmanaged RAS server

This sample shows you how to use the Viewer Tag Library to display a report using an unmanaged Report Application Server.

To view a report
  1. Add a reference to the Viewer Tag Library descriptor file to the top of your JSP page.
  2. <%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>

    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.

  3. Set system property to specify the location of the clientSDKOptions.xml file.
  4. 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.

  5. Create an opening viewer tag.
  6. 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" >

  7. Create the required report tag which specifies the report to display.
  8. 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"/>

  1. Close the viewer tag.
  2. 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/