Adding an External Report


The list of reports displayed can include reports other than those created in Stonefield Query. For example, you may have some existing Crystal (RPT file) or Visual FoxPro (FRX file) reports you want to run from within Stonefield Query. To add these to the list of available reports, choose New in the Reports Explorer toolbar and when asked for the type of report, choose the External Report Wizard. You can also click the down arrow to the right of the New button in the toolbar and choose External Report from the menu that appears. You can also drag an RPT or FRX file from Windows Explorer and drop it on the reports list of the Reports Explorer or select the desired RPT or FRX files from the Import Reports dialog.

If you chose External Report from the menu or report types dialog, select the existing report you want added to the list by either typing the path and name of the report or clicking the small button beside the file name and selecting it in the Open File dialog that appears. If you dragged the file to the Reports Explorer or selected the file from the Import Reports dialog, the file name is already filled in. After you've selected the report file, Stonefield Query reads the report definition to determine which fields appear in the report. If it can't determine the fields used, you are warned that you cannot filter or sort this report in Stonefield Query.

After entering the report file name, enter the same information you would enter when creating a new report in Stonefield Query:

Step 2 allows you to specify certain options for the report.



The options in this step are:

The options in Step 3 allow you to determine who can access your report and what they can do with it.



The options in this step are:

When you are finished, click the Finish button to save the report and add it to the reports list in the Reports Explorer. If you do not want to save the report, click the Cancel button instead.

Visual FoxPro Report Issues

There are several issues specific for Visual FoxPro reports:

Crystal Report Issues

In order to run a Crystal report from Stonefield Query, your computer needs the Crystal runtime files to be installed. This may have already been done if you are using another application that also uses Crystal reports. If not, check with your system administrator to install those files. One issue regarding this is that versions of Crystal Reports after Crystal Reports XI no longer support the Component Object Model (COM) interface. Stonefield Query communicates with Crystal Reports using COM, so even if you have a newer version, be sure to download and install the Crystal Reports XI (or earlier) runtime files.

Another issue specific for Crystal reports is that if a report has parameter fields defined and those fields use dynamic lists of data, the report must be run against the same database as the report was created for. Otherwise, you'll be asked to connect to the database for the values for the parameters.