Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: NetWare 4.1/9000 Print Services > Chapter 8 Working with Print Device Definitions and Printer Forms

Working with Print Device Definitions

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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

  1. From the PRINTDEF "Available Options" menu, select "Print Devices."

  2. 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

  1. From the PRINTDEF "Available Options" menu, select "Print Devices."

    The "Print Device Options" menu is displayed.

  2. Select "Edit Print Devices"

    The "Defined Print Devices" list is displayed.

  3. Select the print device definition corresponding to the printer whose device functions you want to view.

    The "Device Options" menu is displayed.

  4. 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

  1. From the PRINTDEF "Available Options" menu, select "Print Devices."

    The "Print Device Options" menu is displayed.

  2. Select "Edit Print Devices"

    The "Defined Print Devices" list is displayed.

  3. (Optional) To delete an existing definition, highlight the definition and press <Del>.

  4. (Optional) To modify and existing definition, highlight the definition and press <Enter>.

  5. (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.

  6. If you are creating or modifying a definition, press <Enter>.

  7. Select "Device Functions" from the "Device Options" menu.

    The "Functions for Device printername" list is displayed.

  8. To add a new print function, press <Insert>

  9. 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

    Reset <Enter>

    The "Control Sequence" option is highlighted.

    For detailed information on naming and defining print functions, use online Help.

  10. 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

    <Esc>E <Enter>
  11. 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.
  1. Repeat Steps 7 though 10 for each function or control sequence you want to enter.

  2. (Optional) You may edit any of the device functions or control sequences. Press <Enter> to access the "Function Definition" screen, and modify as needed.

  3. (Optional) To delete a function, highlight the function and press <Del>.

  4. Press <F10> to save the modified function.

    NOTE: Because NetWare can place the functions only at the beginning or end of a print job, the best functions to use are those that affect the entire document (such as Condensed or Landscape).

Importing Print Device Definitions

Use the following steps to import a print device definition from a .PDF file into the print device database.

Procedure

  1. Log in as user Admin or equivalent at a workstation and type the following at the command line:

    PRINTDEF <Enter>

    The "Available Options" menu appears.

  2. Select "Print Devices."

  3. 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.

  4. Press <Enter>.

    The "Available .PDFs" window appears.

  5. 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.

Figure 8-2 Importing .PDF Files from another Server

Importing .PDF Files from another Server

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.

Exporting to a Directory

Procedure

  1. From the PRINTDEF "Available Options" menu, select "Print Devices."

    The "Print Device Options" menu is displayed.

  2. Select "Export Print Device"

    The "Defined Print Devices" list is displayed.

  3. 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.

  4. 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 Server

If you want to export the file to a directory on another server, you must have the Supervisor right on the other server.

Procedure

  1. From the PRINTDEF "Available Options" menu, select "Print Devices."

    The "Print Device Options" menu is displayed.

  2. Select "Export Print Device"

    The "Defined Print Devices" list is displayed.

  3. 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.

  4. Press <Insert>.

    The "Network Directories" list box appears.

  5. 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.

  6. Select the NetWare server you want to export to.

    A list of volumes for the destination NetWare server appears.

  7. Select the volume and continue selecting directories to complete the path.

  8. After you have selected the complete directory path, press <Esc> and then <Enter>.

  9. 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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.