The Print Report command line utility allows you to print AB Suite reports independently of the system and reports. This utility allows you to print various report output to multiple device types and destination stations.
The utility is automatically installed with Agile Business Suite Runtime and is located in the /bin64 folder of the AB Suite 7.0 installation directory. You can invoke the utility directly from a command line.
To run PrintReport.exe from a command line:
Point to the bottom-left corner of the screen to enable the Start icon, right-click Start, and then click Run.
Type cmd in the Run dialog box and press Enter to open a Command Prompt.
In the command prompt, change the working directory to the /bin64 folder of the AB Suite 7.0 installation directory.
cd C:\Program Files\Unisys\AB Suite 7.0\Bin64.
Type PrintReport.exe /?
.
This displays the complete usage of the utility along with the description of all the arguments.
The command line syntax of printing a report from the generated report output XML file is
PrintReport /F <ReportOutputXMLFilePath> /DE <DeviceType> [/S <Station>] [/FN <FontName>] [/PI <Pitch>] [/FD <FormDepth>] [/SPN <StartPageNo>] [/EPN <EndPageNo>] [/DEL <DeleteXML>] [/ ]
Parameters
Argument | Description |
---|---|
/F <ReportOutputXMLFilePath> | Specifies the file name of the report output XML to be printed along with the complete path. Notes:
|
/DE <DeviceType> | Specifies the device type to which a report output is printed. The supported device types are; "LP", "TP", "EX" or "DP". Notes:
For example: To print a report output to the LP device type, type PrintReport /F c:\PrintTest\TestReport.xml /DE LP To print a report output to the EX device type, type PrintReport /F c:\PrintTest\TestReport.xml /DE EX |
/S <StationName > | Specifies the destination Station name. In case of LP and TP, the Station name of reports can be a local or network printer. Note: The default Station name is the default printer configured for an AB Suite application user. |
/FN <FontName> | Specifies the font name used for printing. If the specified font type is not support by the Windows operating system, the default font type is used. Note: The default value is the default font type configured for a destination printer. This option is only applicable for reports with the LP device type. For example: To print a report output to the LP device type with the Monotype Corsiva font, type PrintReport /F c:\PrintTest\TestReport.xml /DE LP /S FinePrint /FN Monotype Corsiva |
/PI <Pitch> | Specifies the Pitch of the form while printing. The pitch defines the number of characters that can be printed on a line. Note: The default value is 132. This option is only applicable for reports with the LP device type. |
/FD <FormDepth> | Specifies the depth of the form for printing. This specifies the number of lines that can be printed on a page. Note: The default value is 60. This option is only applicable for reports with the LP device type. |
/SPN <StartPageNo> | Specifies the page number at which printing starts. Note: The default value is 0 and printing starts from the first page. |
/EPN <EndPageNo> | Specifies the page number at which printing ends. Note: The default value is 999999 and all pages are printed. |
/DEL <DeleteXML> | Deletes the Report XML file on completion of report print. Note: The default value is false. |
/ ? | Displays the command line syntax and arguments of the utility for printing the report XML file. If specified, a usage message displays and utility exits without starting the print process. |
Example
The following command clones an instance:
PrintReport /F "c:\PrintTest\TestReport.xml"/DE LP /S "FinePrint" /FN "Monotype Corsiva" /FD 40 /PI 80 /SPN 2 /EPN 8 /Del
Validation messages
If you provide incorrect option for an argument, an error message specifying that the argument is invalid along with the argument appears, along with the usage of the utility, for reference.
If you pass an incorrect command, the error message Invalid input specified appears.
If you pass an incorrect argument, an error message specifying that the input is invalid appears, along with the argument and the usage of the utility, for reference.
If you do not pass the mandatory arguments, an error message specifying that the mandatory input is missing or invalid appears along with the mandatory arguments and the usage of the utility, for reference.
If you pass any incorrect values for the mandatory arguments, an error message specifying that the details are incorrect appears, along with the argument and the usage of the utility, for reference.
If you do not pass any value for a mandatory argument, an error message specifying that the input is invalid along with the argument and the usage of the utility appears for reference.
If you pass valid arguments to run the utility, a message appears as, Report Printed successfully for <Report XML file> .