The following outlines recommended procedures for setting up Reality printers on Windows and UNIX.
Note: In many cases, the responses in the following procedures are suggested values. Refer to the appropriate sections of the documentation (see links below) for alternatives you might need to consider.
Before you can use a printer you have set up, you must do two things:
Assign the form queue to a print report using SP-ASSIGN – for printing from TCL, English or Proc, this will be Print Report 0 (applications may use different Print Report numbers – consult the documentation supplied with your application for details). Each user can have a Logon Proc that performs this assignment when they log on.
By default, Print Report 0 is assigned to the formqueue called STANDARD. If most of your users normally print to a particular printer, once you have set up your printers, you can assign the appropriate despooler to the STANDARD formqueue using the FQM command. This printer will then always be available when they log on. A user can change to a different printer when required by selecting a different formqueue with SP-ASSIGN.
Windows provides easy-to-use utilities for setting up local and network
printers. It is therefore recommended that you set up your printers in Windows
and then create system (SYS)
despoolers to make them available to Reality. You can do this by running the
BUILD.PRINTERS
TCL
command from the SYSMAN account – a despooler and formqueue will be created for each printer that
has been set up on Windows. To list the despoolers created, run the
DSM command and enter a question mark (?
)
at the prompt.
You can then use START-DESPOOLER to start the despoolers that have been created and SP-ASSIGN to assign the required formqueue to the appropriate Print Report – see Using Printers.
In BUILD.PRINTERS, despooler and form queue names are limited to 40 characters in length. As a result, printers with names longer than this (for example, those that are made available when logging on to a domain) cannot be set up using BUILD.PRINTERS. For printers with names longer than this, use the following procedure:
Use DSM to create a despooler:
SYS
.The device name can also include options such as the printer mode and the font to use; see DSM option 2 for details.
Use FQM to create or edit the formqueue you require:
You can then use START-DESPOOLER to start the despooler and SP-ASSIGN to assign the formqueue to the required Print Report – see Using Printers.
The following is an alternative way of setting up printers on Windows:
Create a destination routing entry using netadmin. Accept the default values except as follows:
Destination host name
– enter a suitable name.Protocol
– 1
, Telnet.9100
IP Address or domain name
– enter the IP address of the printer.Create an item in the Reality NETDEVS file as follows:
item-id 001 printerName 002 SHR 003 NETDSP
where item-id can be any suitable name and printerName is the name of the routing entry created in step 1.
Use DSM to create a despooler:
PTR
.S
(shared) to allow other network users to use the printer.Use FQM to create or edit the formqueue you require:
You can then use START-DESPOOLER to start the despooler and SP-ASSIGN to assign the formqueue to the required Print Report – see Using Printers.
On UNIX, there are three ways in which you can set up your printers:
Create a destination routing entry using the netadmin ROUTE-FILE Maintenance Utility. Accept the default values except as follows:
TCP
.Is it a character
mode entry
, answer y
.9100
.y
.Create an item in the Reality NETDEVS file as follows:
item-id 001 printerName 002 SHR 003 NETDSP
where item-id can be any suitable name and printerName is the name of the routing entry created in step 1.
Use DSM to create a despooler:
PTR
.S
(shared) to allow other network users to use the printer.Use FQM to create or edit the formqueue you require:
You can then use START-DESPOOLER to start the despooler and SP-ASSIGN to assign the formqueue to the required Print Report – see Using Printers.
Create a destination routing entry using the netadmin ROUTE-FILE Maintenance Utility. Use the settings given for network printers.
Add your network printer using the netadmin Print Management Utility. Give the following answers to the prompts:
Is this a Reality private (PTR) printer
–
y
.Is this a Reality Release 4.x network printer
–
y
.Network printer name
– enter a suitable name.Printing destination name
– enter the name of the routing
entry created in step 1.Is this printer shared by other hosts or applications
–
y
.Do you wish to limit the number of connect retries
–
n
.Retry interval / end-of-job delay
– accept the default
value.Use DSM to create a despooler.
PTR
.Set option 2, Device Name, to point to the network printer created in step 2, as follows:
%PrinterName /dev/null
where PrinterName is the name of the printer created in step 2.
Notes:
Use FQM to create or edit the formqueue you require:
You can then use START-DESPOOLER to start the despooler and SP-ASSIGN to assign the formqueue to the required Print Report – see Using Printers.
The following example shows how to use BUILD.PRINTERS to set up printers on Windows.
Assume that you have set up two printers on Windows called Laser and InkJet.
Log on to the SYSMAN account and enter:
BUILD.PRINTERS
To list the printers that were found, run DSM and enter a question mark at the prompt.
Start the new despoolers by running:
START-DESPOOLER Laser START-DESPOOLER InkJet
Then to make Laser available for printing from TCL, enter:
SP-ASSIGN =Laser
For example, if you enter
LISTFILES (P
the result will be printed on Laser. To change to using InkJet, enter
SP-ASSIGN =InkJet
The following example shows how to set up a printer on a network as a Reality private printer.
Assume that you have a laser printer on your network with IP address 192.168.37.15.
Log on to the host as root and run the command
/usr/RCS/bin/netadmin
Select option 2, routefile
and add a destination routing entry,
accepting the default values except as follows:
System name
– enter Laser
.Network Type
– TCP
.Is it a character
mode entry
, answer y
.Port Number
– 9100
.192.168.37.15
.y
.From the main netadmin menu, select option 1, print
and
then option 1, netprint
. Add your printer, giving the
following answers to the prompts:
Is this a Reality private (PTR) printer
–
y
.Is this a Reality Release 4.x network printer
–
y
.Network printer name
– Laser
.Printing destination name
– enter the name of the routing
entry created in step 2: Laser
.Is this printer shared by other hosts or applications
–
y
.Do you wish to limit the number of connect retries
–
n
.Retry interval / end-of-job delay
– accept the default
value.Log on to the Reality SYSMAN account and use the DSM
command to create a despooler called Laser
:
PTR
.Set option 2, Device Name, to the following:
%Laser /dev/null
Use FQM
to create a formqueue called Laser
:
Laser
.Start the new despooler by running:
START-DESPOOLER Laser
Then to make Laser available for printing from TCL, enter:
SP-ASSIGN =Laser
For example, if you enter
LISTFILES (P
the result will be printed on Laser.