Troubleshooting Print-Sharing Devices (84491)



The information in this article applies to:

  • Microsoft Windows 3.0
  • Microsoft Windows 3.0a
  • Microsoft Windows 3.1
  • Microsoft Windows 3.11
  • Microsoft Windows 95
  • Microsoft Windows 98
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows Millennium Edition

This article was previously published under Q84491

SUMMARY

Microsoft Windows supports printing in the following hardware configurations:
  • A printer connected directly to a supported LPT or COM port.
  • A printer connected to a network print server on a supported network.
It is possible to print using print-sharing devices or switch boxes, although this is untested and unsupported by Microsoft. This article discusses some of the problems Windows is faced with when printing through these devices.

MORE INFORMATION

There are two types of print-sharing devices:
  • Manual switch boxes
  • Electronic switch boxes

Manual Print-Sharing Devices

Manual print-sharing devices require that you manually move a switch or dial to select one printer or another. These devices are sometimes referred to as AB boxes. The main difficulty associated with manual switch boxes is that they may not pass through all the pin connections that Windows needs when it normally prints.

Electronic Print-Sharing Devices

Electronic print-sharing devices electronically poll each connected communications line (LPT ports or more commonly COM ports) for a short period of time; if no handshake is made (no response), the next port is polled. If a handshake is made, the port is monitored until no more data is being sent, then the next port is polled. The two most common problems with these devices are:
  1. They may not pass through all the pin connections that Windows needs when it normally prints.
  2. The polling rate or type of handshaking may need to be adjusted to work with Windows.
If you are having problems when attempting to print from Windows with one of these devices, do one of the following:
  1. If you can not print from MS-DOS, contact the manufacturer of the print-sharing device. To test printing from MS-DOS:
    1. At the MS-DOS prompt, type the following:

      copy autoexec.bat lpt1

      NOTE: Substitute the port being used for the LPT1 entry above. This works for all printers except PostScript printers. For PostScript printers, type the following at the MS-DOS prompt:

      copy c:\windows\system\testps.txt lpt1

    NOTE: Substitute the port being used for the LPT1 entry above.

  2. Disable Print Manager:
    1. Navigate to Control Panel, click Printers, and then clear the Use Print Manager box.
  3. Disable the Fast Printing Direct to Port option:
    1. Navigate to Control Panel, click Printers, and then click Connect.
    2. Clear the Fast Printing Direct To Port check box.
  4. If you are on an unsupported network, and you have installed Windows for the network, you may need to disable the Print Network Jobs Directly and Update Network Display options:
    1. Navigate to Print Manager, click Options, and then Click Network Settings.
    2. Clear the Print Network Jobs Directly and Update Network Display check boxes.
  5. If you are printing to a Hewlett-Packard (HP) LaserJet or compatible, you may have to print TrueType fonts as graphics:
    1. Navigate to Control Panel, click Printers, click Setup, and then click Options.
    2. Select the Print TrueType As Graphics box.
  6. If the switching box uses COM ports, try setting Windows to use hardware handshaking:
    1. Navigate to Control Panel, click Ports, select the port being used, and then click Settings.
    2. In Flow Control, select Hardware.
    3. Click OK, and then click Close.
  7. Print to the port called Lpt1.dos (or Lpt1.os2 if it exists):
    1. Navigate to Control Panel, click Printers, click Connect, and then select the Lpt1.dos port.
    2. Click OK, and then click Close.
    3. Start Write and type several lines of text and change the font size and style.
  8. Print the Write document.

    If you are working with a COM port, you must add a Com1.dos (or Com2.dos) port to your Win.ini file:

    1. Edit the Win.ini file with a standard ASCII text editor (such as Notepad).
    2. Locate the [ports] section, add the new line COM1.DOS=, and then save the changes.
    3. Restart Windows. You now have a port option called Com1.dos.

    4. Print the Write document to this port.
    COM3 and COM4 normally share IRQs with COM1 and COM2, respectively. They may not be available because of this. If your hardware supports having each COM port on a unique IRQ, then COM3 and COM4 should be usable.
  9. If the print-sharing device traps or captures a COM port, try using the MS-DOS Mode command to set up the COM port and redirect the LPT port to the COM port:
    1. Edit the Autoexec.bat file with a standard ASCII text editor (such as Notepad) and add the following lines:

      MODE COMx:9600,n,8 (where x = 1, 2, 3, or 4)

      MODE LPT1:=COMx: (this routes LPT1 to COMx)

    2. Restart the computer, and then restart Windows.
    3. Select the Lpt1.dos (or the Lpt1.os2) port again and try to print.
    NOTE: This is a workaround and may not function under all printing conditions.

  10. Print to the FILE: port and then copy the output to the printer:
    1. Navigate to Control Panel, click Printers, click Connect, and then select the FILE: port.
    2. Click OK, and then click Close.
    3. Start Write.
    4. Type several lines of text, and then on the File menu, click Print.
    5. Click OK.
    6. When asked for a filename, type C:\OUTPUT.PRT, and then click OK.
    7. Click MS-DOS Prompt, and then type the following command:

      copy c:\output.prt lpt1

    NOTE: Substitute the port being used for the LPT1 entry above.

    If this works, the printing problem is occurring in one of the following areas:

    • BIOS table
    • I/O card (LPT, COM, other)
    • Cable
    • Print-sharing device
  11. Quit Windows, and then run the MS-DOS Debug program to inspect the BIOS table for the correct address:
    1. Type debug, and then press ENTER.
    2. At the minus prompt (-), type d40:0, and then press ENTER.

      You receive the following:

      0040:0000 F8 03 F8 02 E8 03 E8 02-78 03 78 02 00 00 00 00

      COM1 COM2 COM3 COM4 LPT1 LPT2 LPT3


    The above addresses are the industry standard addresses for nonredirected ports (debug does not show the port names above).

  12. If you are using an electronic print-sharing or switching box, try slowing the polling rate it uses or the time-out setting that it uses. Refer to the manual or the manufacturer of this device for instructions on how to do this.
  13. If you still cannot print, remove the switching box and connect the printer directly to the computer. If it prints correctly, then contact the manufacturer of the print-sharing device for additional information on how to adjust the device to work in the Windows environment.

Modification Type:MinorLast Reviewed:7/7/2005
Keywords:KB84491