The CRChart Viewer (CRViewer) allows you to load any Crystal Reports report file (.rpt) that includes a chart and apply CRChart macros. CRViewer allows you to examine the results of CRChart macros outside of the Crystal Reports application. Example:
NOTE: CRViewer requires Crystal Reports Application Server. Report Application Server (RAS) is included in Crystal Reports Enterprise 10, 11, and higher. See the CRViewer Usage Notes for more details.
When you launch the CRViewer application, it will attempt to load the report named "UserLineExample_After.rpt" from the Crystal Reports Application Server Reports directory (by default C:\Program Files\Crystal Decisions\Report Application Server 10\Reports). If the UserLineExample_After.rpt file does not exist at this location, use the File menu Load Report option to load a .rpt file into the viewer. Enter CRChart macros or text in the Chart Title, Subtitle, and Footnote fields. As shown in this example, the chart title "Figure 1 - Average of All Patient Ratings" is entered in the Chart Title field. CRChart macros @X .3 @XY 0.3 0.9 4.5 are entered in the Footnote field. Click the Apply button to apply the text and/or CRChart macros to the chart and see the result.
CRViewer is not included in the CRChart installation package. It can be downloaded separately from one of the following locations:
The .ZIP file contains the CRViewer executable application (CRViewer.exe), source code, and example reports.
CRViewer Usage Notes
- CRViewer requires Crystal Reports Application Server. Report Application Server (RAS) is included in Crystal Reports Enterprise 10, 11, and higher.
- If RAS is installed and running at the time you install CRViewer, you must stop and restart RAS before using CRViewer. (i.e., Select Start -> Crystal Enterprise 10-> Crystal Configuration Manager. Choose Crystal Report Application Server in the toolbar, click Stop, then Start.)
- CRViewer can only open reports from directories that are readable by RAS. Typically, this is the Report directory in the RAS install directory (c:\Program Files\Crystal Decisions\Report Application Server 10\Reports for CR 10). You will need to copy the sample .rpt files to that directory. The Parameters tab in the RAS Properties dialog shows the directory that is readable by RAS - look for the 'Report Directory' field. Example:
- The CRViewer .ZIP file also includes the source code for the CRViewer application. You can load the build (CRViewer.sln) in Visual Studio 2003, modify it as required, and re-build the application to suit your needs. It is a straightforward C# application.
CRChart is a product from |