
Getting the running status of a report
The method getStatus() returns a status message after runReport() in JReport Engine Bean is called. If you use the method getStatus() before runReport() is called, it will only return "No report load" for that the method just stores static value. The getStatus() method may return one of the following messages:
- "OK"
- Error: Cannot find the resource file JRsIndex.jrc! - This is caused by the incorrect setting of the report home path.
- Error: Cannot open the catalog "Catalog Name"! - JReport Engine Bean cannot open the specified catalog file.
- Error: Cannot open the report "Report Name"! - JReport Engine Bean cannot open the specified report file.
- Error: Cannot open the parameter file "Parameter file name"! - JReport Engine Bean cannot open the specified parameter file.
- Error: Unknown format in Parameter values! - The parameter values string is in the wrong format.
- Other errors - JReport Engine Bean has encountered other exceptions.
