Print Report Utility (PrintReport.exe)

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:

  1. Point to the bottom-left corner of the screen to enable the Start icon, right-click Start, and then click Run.

  2. Type cmd in the Run dialog box and press Enter to open a Command Prompt.

  3. 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.
  4. 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:

  • This argument is mandatory.

  • If you do not pass this argument, the error message “Mandatory Input missing or Invalid: /F /DE”, followed by the complete usage of the utility appears.

  • If no file name is specified, the error message “Specify a valid report output XML file name” appears.

  • If the specified report output xml file does not exist, the error message “Report XML file missing at, <Specified location>” appears.

/DE <DeviceType>

Specifies the device type to which a report output is printed.

The supported device types are; "LP", "TP", "EX" or "DP".

Notes:

  • This argument is mandatory.

  • If you do not pass this argument, the error message “Mandatory Input missing or Invalid: /F /DE”, followed by the complete usage of the utility appears.

  • If the specified device type value is invalid, the error message “Report XML file missing at, <Specified location>” appears.

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