When Student Manager Reports is run from a scheduled task or another application, it sets an exit code so you can determine the outcome of the report request.
For a scheduled report, the Last Run Result column of the Windows Task Scheduler includes the hex value shown in the table below.
If you call Student Manager Reports from a batch file, you can check the ERRORLEVEL system variable to determine the exit code.
From other applications, use the Windows API GetExitCodeProcess function; search http://msdn.microsoft.com for information on this function.
The following codes are used:
|Report ran successfully.
|Student Manager Reports terminated with an unexpected error.
|There is no default printer driver.
|Student Manager Reports could not be started.
|The configuration files are invalid.
|The request is to output to file but no file name was specified.
|The report name specified does not exist.
|An error occurred running the report.
|The report has ask-at-runtime conditions and not all values were provided (if AllowDialogs is not specified) or the user clicked Cancel in the ask-at-runtime dialog (if AllowDialogs is specified).
|Login failed: the user name and password weren't specified or were incorrect or that user is already logged in.
|The demo or unactivated version has expired.
|The location of the configuration files could not be determined.
|A component is missing. Please check with your support staff for a resolution to this problem.
|The reports table cannot be opened.
|The security tables cannot be opened.
|A script failed.
|There are no data sources available to query on.
|The location of the reports table has not been specified.
|Invalid license file.
|Setting up of the data and report engines failed.
|The printer name specified in the PRINTER= parameter does not exist.
|An invalid output type was specified.
|The resource file cannot be located.
|You are running a newer application when your maintenance has expired.
|The program could not connect to one of the databases specified in a multi-database report.
|The parameters file specified in the command line doesn't exist.
|The parameters file specified in the command line is invalid.
|Activation of a license failed.
|A scheduled report is supposed to email the report but email settings haven't been set up.
|The folder for the specified output file doesn't exist.
|The report cannot be emailed for some reason.
© ACEware Systems, Inc., 2021 • Updated: 02/26/18
Comment or report problem with topic