skip to main content

Environment Division : INPUT-OUTPUT Section : File Names : -Q <printerName> syntax

-Q <printerName> syntax
The "-Q <printerName>" syntax allows to assign a print file to a specific printer and configure some settings like font and orientation through the physical file name.
The base syntax assigns the file to a named printer:
For example, the below print file will work on a printer named "Samsung-ML-3471ND":
SELECT print-file ASSIGN TO PRINT "-Q Samsung-ML-3471ND"
       ORGANIZATION LINE SEQUENTIAL
The extended syntax allows to set one or more additional settings as follows:
Settings have the following meaning:
“ON”: all file operations are directly redirected to the printer.
“OFF”: all file operations are redirected to the print spooler.
Any setting in addition to the printer name is optional and can appear in any order.
The following complex string, for example, assigns a print file to the printer named "Samsung-ML-3471ND" and specifies that the print job will have a landscape orientation and use the Courier New font:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left