[Top] [Prev] [Next] [Bottom]

Defining Print Devices for IntranetWare HostPrint


In order to use HostPrint, you need to provide information about the print devices you will use. A print device definition for HostPrint identifies print devices and contains all the parameters and options HostPrint needs to generate printer data streams for particular brands and models of printers.

HostPrint creates default print devices for PCL, PostScript, and PPDS during installation. You do not need to do anything else to use these print devices. In this case, you can skip to the next chapter, Chapter 4 "Creating Print Job Configurations for IntranetWare HostPrint." When you first install HostPrint, we recommend you use one of the print devices HostPrint provides.

You can use the HostPrint Print Device utility, HPDEFW, to create or import print devices to an Organization (O) or an Organization Unit (OU). With HPDEFW, you can add, edit, copy, or delete print devices for HostPrint, or you can export these print devices to .PDF files. You can then import the .PDF files using Novell's NetWare Administrator (NWAdmin).

In order to define print devices, you must have access to a NetWare server or servers, and you must have supervisor privileges.

This chapter describes how to define print devices using HPDEFW.

Starting HPDEFW

To start HPDEFW, double-click on the HostPrint Print Device utility icon or select the program from the Windows Programs menu.

Connecting to a HostPrint Server

When you first start HPDEFW, the program displays the Select IntranetWare HostPrint Server dialog box.

Figure 3-1
Select IntranetWare HostPrint Server

HostPrint needs this information before you can change information on a file server. HPDEFW gathers the following information:

If the server you want to configure does not appear in the list because the COMMEXEC.NLM is not currently loaded, you can still configure printer definitions on that server by typing the server's name in the HostPrint Server Name box.

To change information in this dialog box, either select the desired information from a drop-down list or enter the information in a text box. When the information is correct, choose the OK button.

If HPDEFW has trouble connecting to the server you select, the program will issue an error message.

To close the dialog box and return to the main menu, choose the Cancel button.

Defining IntranetWare HostPrint Print Devices

You must provide a print device for each printer you will use with HostPrint; however, many printers may use the same print device. Using HPDEFW, you write the print device names and definitions HostPrint uses directly to Novell Directory Services (NDS). Then, NDS acts as the broker of this information when looking for a printer or queue.

HostPrint comes with the following printer definitions: PCL, Postscript, and PPDS. When you install the program files, the installation program adds these default print devices to either an Organization (O) or an Organization Unit (OU) which contains the servername_HOSTPRINT object.

Using HPDEFW, you can:

Editing a Print Device

1. From the HPDEFW File menu, select Modify Devices or click the <> button on the toolbar.
HPDEFW displays a list of the defined print devices (Figure 3-2).
Figure 3-2
List of Defined Printer Devices
2. From the list of defined print devices, highlight the print device you wish to edit and click the Edit button.
HPDEFW displays a list of the print device functions.
Figure 3-3
List of Available Functions
3. To edit a specific function, highlight the function and then click the Edit button.
To go back to the list of defined print devices without making any changes, click the Back button.
Table 3-1 lists descriptions and default code sequences for each print device function.

Code sequences are printer-specific. Consult your printer documentation for information concerning code sequences and functionality your printer supports.

Table 3-1
IntranetWare HostPrint Print Device Functions

Print Device Function

Description

Default Code Sequence

Initialize Printer

Sets the defined printer to the appropriate initial state. Sets characters per inch, characters per line, lines per inch, and lines per page to the defined default values for either portrait or landscape mode or both modes. You define this function using a code sequence, which can be from 1 to 64 characters.

Portrait:
<ESC>E<ESC>&l0O
<ESC>(0N<ESC>(s16.66H
Landscape:
<ESC>E<ESC>&l1O<ESC>(0N<ESC>(s.16.66H

ASCII Code Page ID

Specifies the code page the printer uses. Common IBM-compatible ASCII code page IDs include:
100 - Roman-8 (HP LaserJet)
437 - USA, most of Europe
850 - Multilingual
860 - Portugal
863 - Canada (French)
865 - Denmark, Norway
If the 8-bit ASCII code page your printer supports is different from those that
IBM-compatible PC printers commonly support, you will have to provide a custom ASCII code page translation.

100 (commonly used by HP LaserJet printers)

Set Code Sequence Option

Sets the code sequence for the following:

Print one space (or blank) character.

Return the print position to the left margin of the line it is on (carriage return).

Move the print position down one line (line feed). You should set the "Reposition afterwards, using spaces" option to Yes if you are using a printer that moves the print position to the left margin as well as down one line. In this case, the code sequence for line feed instructs HostPrint to simulate a true line feed by spacing back out to the original horizontal position.

Move the print position to the left margin and down one line (new line).

Sound the bell whenever the code sequence is encountered.

Sets the print position one space to the left (backspace).


<SP>
<CR>
<LF>







<CR><LF>
<BEL>
<BS>

Form Feed without Horizontal Reposition

Sets the print position to a new line at the top of the next page without changing the horizontal position. You can set this function to use a code sequence or to simulate the form feed using repeated line feeds.
You should set the "Reposition afterwards, using spaces" option to Yes if you are using a printer that moves the print position to the left margin as well as down one line. In this case, the code sequence for line feed instructs HostPrint to simulate a true line feed by spacing back out to the original horizontal position.

<FF>

Form Feed to top left of Next Page

Moves the print position to the left margin at the top of the next page. You can set this function to use a code sequence or to simulate the form feed using one new line and repeated line feeds.

<CR><FF>

Set Characters Per Line (CPL)1

Sets the characters per line. HostPrint supports a range of 0 to 255 characters (0 means unlimited).


Set Lines Per Inch (LPI)

Sets the lines printed per inch. When LPI is set to six and you are using 11-inch paper, Maximum Print Lines (MPL) is 66. When LPI is set to eight and you are using 11-inch paper, MPL is 88.
The MPL values for each LPI value in HPDEFW apply to printers using cut-sheet paper; they do not apply to printers using continuous feed paper. These values are provided for documentation only; HostPrint does not use these values.

<ESC>&l3D for three LPI
<ESC>&l4D for four LPI
<ESC>&l6D for six LPI
<ESC>&l8D for eight LPI

Set Lines Per Page (LPP)*

Sets the lines per page. HostPrint supports a range of 0 to 255 lines (0 means unlimited).


Terminate Printer

Restores the specified print device functions to their defaults so the banner page for the following HostPrint print job prints correctly. Specify a termination code sequence for each print device function set using the Initialize Printer function. For example, if you set the printer to print in landscape mode, you would specify a termination code sequence specific to your printer to return to portrait mode. Consult your printer documentation for appropriate termination code sequences.

<ESC>E
1
* With this function, you can specify a leading code sequence and/or a trailing code sequence, as required by your printer. If your printer does not support both the leading and trailing code sequences, set these fields to zero-length strings.

Copying a Print Device Definition

To copy a print device definition, do the following:

1. From the HPDEFW File menu, select Modify Devices.
HPDEFW displays a list of the defined print devices.
2. From the list of defined print devices, highlight the print device you wish to copy and click the Copy button.
HPDEFW displays a dialog box where you can enter a name for the device you are about to copy.
3. Enter a new name for the device and click OK.
HPDEFW immediately adds the name of the device to the list of defined print devices and to NDS.
If you wish to edit the device, highlight the device name and then click the Edit button (see "Editing a Print Device" on page 3-4).

Creating a New Print Device Definition

To create a new print device definition, do the following:

1. From the HPDEFW File menu, select Modify Devices.
HPDEFW displays a list of the defined print devices.
2. Click the New button.
HPDEFW will use the default PCL device as a base for the new print device definition.
3. Enter a name for the new device and click OK.
If there is no conflict with the name and an existing device, HPDEFW creates a device using the PCL default device as a base. HPDEFW also immediately adds the name of the new device to the list of defined print devices and to NDS.
If you wish to edit the device, highlight the device name and then click the Edit button (see "Editing a Print Device" on page 3-4).

Deleting a Defined Print Device

To delete a defined print device, do the following:

1. From the HPDEFW File menu, select Modify Devices.
HPDEFW displays a list of the defined print devices.
2. From the list of defined print devices, highlight the print device you wish to delete and click the Delete button.
HPDEFW immediately deletes the device from the list of defined printers and from NDS.

Exiting HPDEFW

Before you exit from HPDEFW, you should export all print device definitions to create a .PDF file for each print device definition.

HPDEFW creates the .PDF files in the directory you specify. The .PDF files contain only the names of the HostPrint print devices defined by HPDEFW. You can import these .PDF files using NWAdmin.

If you do not export before exiting HPDEFW, the program will not create a .PDF file for any print devices you defined during this session.

After you have exported the HostPrint print device definitions, choose Exit from the File menu to exit HPDEFW.

What's Next?

When you have defined print devices for HostPrint, you will next need to create print job configurations that point to the NDS printer or print queue, the print device, and the mode to be used when printing. For information on creating a print job configuration for HostPrint, proceed to the next chapter.



[Top] [Prev] [Next] [Bottom]

usib2hpd@vnet.ibm.com
Copyright © Novell, Inc. and International Business Machines Corporation 1998. All rights reserved.