WINPRINT-UPDATE-PRINTERS

Usage

CALL "WIN$PRINTER" 
     USING WINPRINT-UPDATE-PRINTERS

Description

This op-code enables you to force the runtime to reload the internal printerlist so that any changes to that list (new printer added, for example) will be detected by the COBOL program.

This op-code takes no parameters and always returns TRUE. By calling this op-code, the runtime printing system is told to reload the printer list. A call to this op-code should be followed by a call to one of the following op-codes to ensure synchronization between the COBOL printer list and the internal runtime:

    78  WINPRINT-GET-NO-PRINTERS            VALUE 13.
    78  WINPRINT-GET-PRINTER-INFO           VALUE 14.
    78  WINPRINT-GET-CURRENT-INFO           VALUE 16.
    78  WINPRINT-GET-PRINTER-INFO-EX        VALUE 28.
    78  WINPRINT-GET-CURRENT-INFO-EX        VALUE 30.