:
|
ArcView GIS Version 3.1 includes a Report Writer extension that allows you to access Seagate Crystal Reports for Esri from an ArcView Table, View, or Project. This article describes how to launch a template report using the Report Writer Wizard, add a map to a report either manually or as an OLE object, launch a template report from a button in ArcView GIS, and create and launch a report executable file from a button inside ArcView GIS. You should have the full installation of Crystal Reports on your machine to take advantage of the Report Writer extension. Be sure to load this extension by choosing File, then Extensions, and then checking the box next to Report Writer. This extension streamlines the process of selecting and preparing data for reports. Inside ArcView GIS, a Report Wizard allows you to choose the type of report you want before launching the Seagate Crystal Reports application. You can access the Report Wizard by choosing Theme then Create a Report from the View menu or by choosing Table then Create a Report from the Table menu. Once inside Crystal Reports, your data will already be loaded and a Report Expert will guide you through the report design process. If you have never designed a report using Crystal Reports, go to the ArcUser Online Jump Station for a link to a tutorial that will help you get started. Using Report TemplatesOne of the nice features of Seagate Crystal Reports for Esri is the ability to design a report and then use that report as a template for future reports. If you need to create the same report over and over and only need to change the data each time, using a report template is an ideal solution. Once you have designed a report template, you can access the template from ArcView GIS through the Report Wizard. From the Report Wizard, select Create a Report Based on Another Template. Select the report you want to use as a template. A new report based on the data in the current project will automatically be generated once Crystal Reports is launched. Adding a Map to Your Report You may want to include a map in a report you are generating with Crystal Reports. In ArcView GIS, export the view you want to include in the report as a Windows bitmap (.BMP) file by choosing File then Export from the menu. Give the bitmap file a name such as MyMap.bmp. Next, switch to Crystal Reports to manually insert the map into the report as a picture by choosing Insert and then Picture from the menu. With this method, if your map changes, you must delete the original map and insert the updated new map into the report manually. To automatically update a map in a report, you can add the map image as an OLE object in Crystal Reports. Follow these steps to add a map as an OLE object.
Place the image in the Report Header area. Now, when you export MyMap.bmp, the report will automatically be updated the next time it is opened. Create a Report from a Template Without Report Wizard Now that you have created a template and added a map, you may want to automate report generation even more by launching a template report from a button on the view or table GUI rather than from the Report Wizard. This can be done by creating a button and attaching an Avenue script to it. For information on adding a new button to a GUI document refer to Chapter 12, "Working With the Document User Interface," in Using Avenue, one of the manuals that came with ArcView GIS. In sample Script 1, a template report was first designed and saved as TemplateReport.rpt. The new output file created will be MyReport.rpt. Note that the database file, TemplateReport.dbf, has the same name as the template report. Creating a Report Executable (EXE) File What happens if you want other ArcView GIS Version 3.1 users to access your report without actually launching the Crystal Reports for Esri? You can create a Crystal Report executable file that is a read-only version of your template report. First, follow the special instructions below when designing your report in the Crystal Reports for Esri Designer.
|