 |
» |
|
|
 |
If your application does not have
the print driver for your printer, NetWare supplies print device
definitions for many common printers. If your print driver is not
included among those provided in your application or in NetWare,
you can use PRINTDEF to create a new print device definition and
to specify the correct control sequences according to your printer's
documentation. Viewing
Print Device Definitions |  |
Procedure From the PRINTDEF "Available Options" menu,
select "Print Devices." Select "Edit Print Devices" from
the "Print Device Options" menu. A list of the print device definitions appears. If the "Defined
Print Devices" list is empty, none have been defined in
or imported to the database.
Viewing Functions for Print Device Definitions |  |
A device function is a control sequence (a string of control
code characters) that controls a printing characteristic for a printer. To view the functions and control sequences for a print device
definition, complete the following steps. Procedure From the PRINTDEF "Available Options" menu,
select "Print Devices." The "Print Device Options" menu is displayed. Select "Edit Print Devices" The "Defined Print Devices" list is displayed. Select the print device definition corresponding
to the printer whose device functions you want to view. The "Device Options" menu is displayed. Select "Device Functions." The functions and corresponding control sequences that have
been defined for the selected printer appear. If the control sequence for a function is too long to be displayed
in the "Printer Functions" list (longer than 32
characters), select that control sequence and press <Enter>.
The control sequence appears in the "Function Definition"
entry box.
Creating
or Modifying Print Device Definitions |  |
If a device definition for your printer is not included among
those provided with your application or with NetWare, you need to
create your own definition. Each print device definition consists
of functions and modes. Printer functions (also referred to as control sequences,
escape sequences or printer commands) give instructions to the printer.
To define a printer's functions, you enter control sequences
or printer commands into the PRINTDEF database. To do this, you
need the technical reference manual that came with your printer. As a network supervisor, you can define or modify a printer's
functions by completing the following steps. Procedure From the PRINTDEF "Available Options" menu,
select "Print Devices." The "Print Device Options" menu is displayed. Select "Edit Print Devices" The "Defined Print Devices" list is displayed. (Optional) To delete an existing definition, highlight
the definition and press <Del>. (Optional) To modify and existing definition, highlight
the definition and press <Enter>. (Optional) To create a new device definition, press
<Insert>. Type the name you want to assign to the new print
device definition in the "New Device Name" entry
box. The name should be recognizable to users (for example, a brand
name such as IBM ProPrinter), and it cannot be more than 32 characters
in length. The name of the printer you just typed is highlighted. If you are creating or modifying a definition, press
<Enter>. Select "Device Functions" from
the "Device Options" menu. The "Functions for Device printername" list
is displayed. To
add a
new print function, press <Insert> Type a name to identify the printer command in the
"Function Definition" entry box and press <Enter>. Function names must be unique (no two names can be the same)
and no longer than 32 characters. Function names are not case sensitive.
You can use both letters and numbers. For example if you are defining the HP LaserJet and you want
to include the print function for resetting the printer, you would
type The "Control Sequence" option is highlighted. For detailed information on naming and defining print functions,
use online Help. Enter the control sequences or printer commands
for the specified print device. The documentation that came with the printer should have a
chapter or section explaining printer commands. Consult that documentation. Press <F1> for Help to see syntax used in creating
definitions. For example, to enter the HP LaserJet print function for reset,
you would type To save and insert the new control sequence into
the "Functions" list, press <F10>.
 |  |  |  |  | CAUTION: When you enter the print functions for a device,
be sure to create a reset control function. This control sequence
needs to be used to return the printer to a known state. |  |  |  |  |
Importing Print Device Definitions |  |
Use the following steps to import a print device definition
from a .PDF file into the print device database. Procedure Log in as user Admin or equivalent at a workstation and type
the following at the command line: The "Available Options" menu appears. Select "Print Devices." Select "Import Print Device" from
the "Print Device Options" menu. The Source Directory appears with the default SYS:PUBLIC if
PRINTDEF was started from a network drive. Press <Enter>. The "Available .PDFs" window appears. Select the .PDF file you want to add to your database
from the "Available .PDFs" list. If you try to import a print device definition that has the
same name as an existing print device definition, the "New
Device Name" entry box appears, prompting you to rename
the new definition. Type the revised name and press <Enter>. The new print device definition is added to the print device
definition database. You are returned to the "Print Device
Options" menu.
Importing Print Device Definitions from
another NetWare Server |  |
If you want to use another NetWare server's print
device definition, you must import the definition from that server.
First export the print device definition from the original server
into a .PDF (Print Definition) file. You can then import the .PDF
file to the database on your server. You can copy only one definition
at a time. You must have the Supervisor right (user Admin or equivalent)
on both NetWare servers (or the Admin of the other server will need
to help you). Figure 9-2 illustrates the steps in copying a print device
definition. This example shows how to copy a typical print device
definition from NetWare server MARKETING to NetWare server SALES. First, export the definition from the PRINTDEF database on
MARKETING to the SYS:PUBLIC directory on MARKETING. Then import
the definition from the SYS:PUBLIC directory on MARKETING to the
PRINTDEF database on SALES. Exporting Print Device Definitions |  |
You can export a print device definition from a database to
your current directory, to another directory on the current NetWare
server, or to a directory on another server. Decide where you want
to export the definition, and complete one of the following sections. Procedure From the PRINTDEF "Available Options" menu,
select "Print Devices." The "Print Device Options" menu is displayed. Select "Export Print Device" The "Defined Print Devices" list is displayed. Select the device definition you want to export
from the "Defined Print Devices" list. The "Destination Directory" window appears.
The SYS:PUBLIC directory is the default if PRINTDEF was started
from a network drive. When exporting and importing .PDF files, press <Insert>
to browse directories. After specifying the destination directory, press
<Enter>, then type the name you want to give the file in
the "Export File Name" entry box. Press <Enter>. The name can be up to eight characters long but cannot include
an extension. You will probably want to use the name of the printer
so the file is easily recognizable (for example, HP_LASER). The file is created with a .PDF extension and is placed in
the specified directory. You are returned to the "Print Device Options"
menu.
Exporting to a Directory on another ServerIf you want to export the file to a directory on another server,
you must have the Supervisor right on the other server. Procedure From the PRINTDEF "Available Options" menu,
select "Print Devices." The "Print Device Options" menu is displayed. Select "Export Print Device" The "Defined Print Devices" list is displayed. Select the device definition you want to export
from the "Defined Print Devices" list. The "Destination Directory" window appears.
The SYS:PUBLIC directory is the default if PRINTDEF was started
from a network drive. Press <Insert>. The "Network Directories" list box appears. Select the ".." entry at the top
of the list. Continue pressing <Enter> until the "Volumes"
window appears. This window lists the servers and volumes you are currently
attached to, and provides the username through which you made the
attachment. Select the NetWare server you want to export to. A list of volumes for the destination NetWare server appears. Select the volume and continue selecting directories
to complete the path. After you have selected the complete directory path,
press <Esc> and then <Enter>. Type the name you want to give the file in the "Export
File Name" box and press <Enter>. The name can be up to eight characters long but cannot include
an extension. You will probably want to use the name of the printer
so the file is easily recognizable (for example, HP_LASER). The file is created with a .PDF extension and is placed in
the specified directory.
|