INF: How to Suppress "Local Port Error" Dialog Boxes

Last reviewed: July 23, 1996
Article ID: Q151770
The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5 and 3.51
  • Microsoft Windows NT Server versions 3.5 and 3.51

SUMMARY

When you have created a printer for a local port (for example, LPT1) on a computer running Windows NT, and you want to print from an application running on this computer, a dialog box appears if the printer is not connected or turned on or is out of paper. The box says that Windows NT can't write to the port and asks you to either cancel or retry the print job. This is expected behavior and is desirable under most circumstances; however, in some cases you may not want these dialog boxes to appear on the user's desktop. There are steps you can take to suppress these dialog boxes.

MORE INFORMATION

To suppress the dialog boxes, complete the following procedure:

  1. Create a second printer with exactly the same settings as the printer attached locally and have it print to the same port as the local one.
2. Share this second printer on the network. 3. Open the Properties of the original printer. 4. In the "Print to" dialog box, select "Other...". 5. In the "Print Destinations" dialog box, select "Local Port" then press
   OK.
6. In the "Port Name" dialog box, type the UNC name for the printer
   you shared in step 2. The UNC name contains your computer name and the
   share name, for example, "\\my_computer\laserjet2".
7. Press the OK button twice to return to Print Manager.

The local monitor displays the dialog box advising of a printing error only for users who work at the local computer and use printers that print to local ports. If you follow the procedure described above, the local monitor does not display this dialog box for the original printer since it is not printing to a local destination, and it does not display it for the second printer because it thinks that the client is coming in from the network (that is, arriving through the print share).


KBCategory:
KBSubcategory:
Additional reference words: 3.5 3.51 prodnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 23, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.