The information in this article applies to:
SUMMARYWhen using COM1.OS2 or COM1.PRN as a workaround for printing problems with Microsoft Windows version 3.0, you must configure the serial port through the AUTOEXEC.BAT file. The statement MODE COMn[:]bb[,x[,y[,z]]]must be added to the AUTOEXEC.BAT file, where the following is true: "n" is the name of the communications port.In addition, you must add the following line to the [PORTS] section of the WIN.INI file [PORTS]where "n" is the name of the communications port. NOTE: Using the COMn.PRN workaround is not recommended, as explained in the "MODE Statement" section below. MORE INFORMATION
The function of the MODE COMn statement is to set the parameters of
the communications port that define the speed and form of the data
transmitted through the port. When using a COM port in Windows, these
settings are taken care of by the Control Panel. When using the
COM1.OS2 and COM1.PRN workarounds in Windows, the print job is sent to
the MS-DOS COMn device, which requires the serial port be reconfigured
for it to work correctly with every print job.
MODE StatementPrinting to COMn.PRN ports requires a MODE statement at the MS-DOS level. If this statement gets changed or deleted, Windows won't print to the COM port. Testing printing to a serial printer from MS-DOS, using a COM port, may not work with some printers (such as PostScript printers). As a result, using the COMn.PRN workaround is not recommended.For example: MODE LPT1=COMn.PRN (where n=1,2,3, or 4)For more information on printing to ports, such as COM1.PRN and LPT1.OS2, query on the following words: LPT1.OS2 and LPT1.PRN Additional query words: COM2, COM3, COM4 3.0 3.00 win30
Keywords : |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |