AMT Help Files

Printers

The printer tab shows the available printers on the AMT-COBOL environment.


 

There should always be a printer without name (Empty String). This will be the default printer of the AMT-COBOL environment.
 
 
 

Managing Printers



When a printer in the list is selected the following actions on that printer are possible: View, Edit, Copy, Remove printer and BulkEdit.

When Add, Edit or Copy printer is clicked, the following window will open. In case of Add the edit boxes will be empty.

 

Tab Text printer properties:


*) When the option "Write formfeed" is enabled, a formfeed character will be placed in the printfile after the maximum number of lines has been printed.
This maximum number of lines can be set with the option "Max lines" per printer, however if there is a PAGE LIMIT clause set within the code of the program then this will overrule the printer option.

The form feed character itself can be set using the option "Formfeed", default this is the hex value 0c.


Filevariables that can be added to the Print file:

When a printer is added or changed a restart of running printcontrollers is needed for these changes to take effect.

To be able to print using the LPR protocol, the Windows feature 'LPR-Port-Monitor' must be installed on the server the PrintController is running on.

In a PowerShell command box you can install this with the command: 'Install-WindowsFeature LPR-Port-Monitor'.

When using Lpr Printing and a great number of print jobs is executed in a short time, the Windows OS will insert a delay after 10 print jobs. This behaviour can be altered by changing a setting in the Windows OS, see Microsoft KB2003449.

 

 

BulkEdit

With BulkEdit multiple printers can be (re-)assigned to a printer queue at once.


When the BulkEdit button is clicked, a dropdown list with all available printer queues appears as well as checkboxes to select the printers.
After selecting the printer queue and selecting the printers, click the Apply button at the bottom right of the screen to change the printer queue of the selected printers. 

The checkbox next to the column name 'Activated' (de-)selects all printers at once.


Tab Text printer macro’s:

This tab shows the printer macro’s defined for this printer. The macro names itself should be defined in the menu option Printers -> Printer macros tab.




By clicking directly on the MacroLine field and the using the Enter key the macro can be edited. Save changes by again using the Enter key and then clicking Ok or Apply.


To use printer macros, it is necessary to filter out HexFF characters from the print data.
Whilst this is the default behaviour of the print controller, the setting should be checked when having problems with printer macros.
See the 'Hex value printing filter' option on the Runtime behaviour configuration page.

 

Tab Graphical printer properties:

If this is a graphical printer, here the windows name of the graphical printer should be entered. This printer name is case sensitive!



When using a Network Printer for graphical printing, please read the notes about accessing network printers for graphical printing in the help page Print Services.