Skip to main content

Connection - Crystal reports​

The Crystal reports Connection stores the address, sign-in and security settings that the Reporting - Crystal reports Task uses to connect to the databases of a Crystal report. In the Task, select one Connection for each database connection that the report uses. See How the Task applies the Connections.

Runtime binaries​

The Crystal reports Task needs the SAP Crystal Reports runtime on the computer where the VisualCron Server runs. Install the 32-bit or 64-bit version that matches your machine. For VisualCron 9.9.7 and later, runtime version 30 is required:

Common settings​

Crystal reports Connection, Common settings tab

The Common settings tab is the same for every Connection type that has it; see Common settings.

For a Crystal reports Connection, no Test button is shown, and Timeout and Code page are not used. The Crystal reports Task uses the Task timeout.

Main settings​

Crystal reports Connection, Main settings tab

These fields are on Connection settings -> Main settings. Address and Username are required.

  • Address: the name of the ODBC or OLE DB data source (DSN) that the report uses. It must match the name shown in the ODBC Data Source Administrator exactly. Create the DSN as a System DSN on the Server computer, because User DSN entries are not available across users. If the report uses a User DSN, create a System DSN with the same name. The DSN sets the target database
  • Username: the user name of the database credentials that the data source uses. With Integrated security, the Windows user name
  • Password: the password for that user
  • Integrated security: when selected, the Task runs the report as the Windows user given in Username and Password, and connects to the database with Windows authentication. This applies only when one Connection is selected in the Task

How the Task applies the Connections​

With one Connection selected, the Task sets the server name of each report table to Address. It then uses Integrated security, or passes Username and Password.

With more than one Connection selected, the Task matches each report table to the Connection whose Address equals the server name stored in the report and whose Username equals the user ID stored in the report. Only the password of the matching Connection is used, and Integrated security is not applied.

When a report table has no stored user ID, the Task leaves its connection details as they are.

Troubleshooting​

Find the cause of a failing report​

To find the cause of a failing report, complete the following steps:

  1. In the Crystal reports Task, select Extended Task debug logging on the Main settings tab. See Task - Main Settings.
  2. Run the Task.
  3. Open the log.

The log shows, for each report table, the server name, user name and database name that the Task used, and whether a password was set.

Common causes:

  • Address does not match the name of the System DSN
  • The DSN exists only as a User DSN
  • The report does not use the System DSN
  • Username or Password does not match the database credentials
  • A Connection is missing for one of the report's database connections

Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.4000.0'​

Install the Crystal Reports runtime version that VisualCron requires (see Runtime binaries), in the 32-bit or 64-bit version that matches your machine. Then restart the VisualCron Server service.