Technical article 102167

Printing from Merge DOS or Windows to an HP Jet Direct Printer is garbled.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

When printing to a Unix spooled printer from Merge Windows or DOS, if any printer type used in DOS, a DOS application, or Windows application (other than "standard/text") is chosen, the output is garbled and/or single extended ASCII characters are printed or the printer outputs many blank pages.

-- or --

It isn't possible to print graphics or fonts from Merge Windows applications to a Unix spooled printer.

-- or --

When printing with a Merge DOS application, such as Word Perfect 5.x (using a Word Perfect printer interface script), the output is garbled, single extended ASCII characters are printed, or the printer outputs many blank pages.

Cause

Text sent to the Unix spooled printer from a Merge DOS or Windows
application is being processed twice, first by the "Printer Type"
selected for Merge DOS or Windows and then by the printer
interface script used by the Unix spooler.  This causes extra
extended ASCII characters that are normally sent as printer commands
or code, to be interpreted by the printer as printable characters.

Solution

Before proceeding, ensure that printing to a Unix spooled printer
works properly.  Note the Unix printer name assigned to that printer.
NOTE: The steps below will only work with a Unix printer interface
script that supports passing a print job through the spooler with
the "raw" option.  Most HP Unix printer interface scripts, as well
as most laser printer interface scripts, support the "raw" switch.
Make sure the printer type chosen for the DOS or Windows application
has the latest DOS or Windows drivers for that printer.  Contact the
printer manufacturer for that information, if necessary.

To set a Unix spooled printer as DOS LPT1, either edit C:/autoexec.bat for an individual user, or edit the system wide autoexec.bat with the following new line:

printer LPT1 Unix "lp -d<Unix_spooled_printer_name> -oraw"

where "<Unix_spooled_printer_name>" is the name assigned for the Unix spooled printer.

If other DOS LPT ports are to be used, modify the above example by changing "LPT1" to the appropriate entry.

Merge/Windows users can now print all fonts and graphics for the "Printer Type" supplied by the Windows Printer driver.

In a DOS application, simply choose a printer type that will work with the Unix spooled printer and use DOS LPT1 or whatever port is configured in autoexec.bat.

NOTE:     If the printer type in Windows is any HP LaserJet model, choose
          LPT1.DOS as the "Connect-->Port" in the Windows Control Panel
          Printers Configuration icon.  If that port is not chosen, attempting
          to print to an HP LaserJet printer will return a printer error of
          "Out of paper", "Printer Off-line" or "Cartridge not chosen".

From the Xinuos technical article database, record 102167. Reproduced with permission. The original is at www.sco.com/ta/102167, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.