Symptoms

When you run Report Commander from the command line to print a report, Report Commander issues the following error and does not print the report:

Error: Failed to print report: Index was outside the bounds of the array.

Cause

This error may occur if the printer paper source saved with the report is invalid for the printer to which the report is being printed.

Resolution

Add the following command to the Report Commander command line

papersource=7

(Add the command anywhere on the command line before any parameters being specified for the report.) This command will set the paper source to "automatic."

Status

The problem appears to be caused by an issue with the Crystal Reports components used by Report Commander to print the report.

  • Report Commander 1