Table of contents
Working with printers in Classify consists of two main area's. First of all, there is the programming angle. Second there is the setup side. Programming can roughly be devided in "using standard batch classes" and "not using the standard batch classes".
All printer actions in Classify are now handled inside the IO-Manager, which is a part of the desktop. To make use of the device & printer handling of Classify, you must use the pOpen_Device message to request a channel. This message takes a single argument: the address of an array object containing preferences for the device.
- Printer name & description
- Is printer capable of printer double sided
- What is the maximum width in characters the printer can handle (e.g. in condensed landscape)
- Initialisation and de-initialisation
- Default pitch
- Formfeed handling
In the control string, you can use <XXX> to specify decimal values for control characters (e.g. <27> for "Escape"). You can also specify <#AAA> to specify other control codes. For instance, you could specify "INIT" as "<#RESET><#LANDSCAPE>".
We recommend that you specify both "logical" codes and "physical" codes. Examples of "physical" codes would be "condensed", "10 cpi" or "bold". The "logical" codes would be "133 columns", "letter quality" and so forth. The logical codes will achieve a given result, using the appropiate physical codes for a given printer. For instance, the code "133 columns" could be empty on a wide matrix printer, condensed on a standard matrix and 16cpi on a laser printer.
The devices are installation specific. A device can be a physical port, but it can also be a print queue or a program you want to initiate (e.g. a text editor or a file browser). You can tell Classify to print direct, or to create a temporary file first and than process that file. You can tell Classify to execute commands prior to the print and after the print has completed.
A device is associated with a printer type and with paper types available in the attached printer. The paper types themselves are specified in the normal table "HDS2007". In this normal table, you can also specify the size of the paper. When you specify papertypes per device, you can also specify a printer code to select the appropiate paper tray.
You need to specify at least the paper type "DEFAULT" in the normal table. The dimensions for this paper will be used whenever no paper is specified for a printer. If you do not specify this paper type, page length 0 will be assumed!
You can grant access per user to specific devices. This way, you can configure specific devices for specific users, preventing a user to print on a device on the other end of the building, or in a different office!. Here, you can also specify a "prefered" device per user.
If you do not want to go through the effort of specifying devices per user, you can set the print security in the system configuration section of the cl_main.ini file to off, in which case we will skip the check for the user attachment.
- He has access to
- Support the specified capabilities (width, double sided)
- Provide the requested paper type