Increasing the Transmission Retry Timeout for Printing

Last reviewed: July 23, 1997
Article ID: Q99801
3.10 WINDOWS kbprg

The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) for Windows versions 3.0 and 3.1

SUMMARY

The number of seconds for transmission retry timeout can be set through the Connect dialog box in the Printers application of the Control Panel. The entry in the Transmission Retry field is limited to 999 and is set individually for each printer. This limit cannot be increased. However, an application can increase the default transmission retry value up to 65536 by editing the TransmissionRetryTimeout value in the Windows section of WIN.INI. This setting takes effect when the Print Manager is disabled.

MORE INFORMATION

The TransmissionRetryTimeout entry in the Windows section of WIN.INI is the default retry value. It is limited to 65536 and resembles the following:

   [windows]
   TransmissionRetryTimeout=45

There is also a retry value for each printer in the PrinterPorts section of WIN.INI; it is limited to 999 and resembles the following (the format is "device=driver,port,DeviceTimeout,RetryTimeout"):

   [PrinterPorts]
   HP LaserJet IIISi=HPPCL5MS,FILE:,15,45
   HP LaserJet IIISi PostScript=pscript,FILE:,15,90

When the retry value for a particular printer is changed via the Control Panel, the value in the PrinterPorts section is changed. The Control Panel does not alter the value in the Windows section. The TransmissionRetryTimeout value in the Windows section must be changed manually by editing WIN.INI with a text editor or programmatically by calling a function such as WriteProfileString(). GetProfileInt() can be used to determine the current setting.

NOTE: Control Panel sets the default transmission retry value for the PostScript driver (PSCRIPT.DRV) to twice the default value of other drivers.

The TransmissionRetryTimeout setting is used only if Print Manager is disabled. Otherwise, the RetryTimeout value listed in the PrinterPorts section for the current printer is used.

For more information about disabling Print Manager programmatically, query on the following words in the Microsoft Knowledge Base:

   print and manager and disable


Additional reference words: 3.10 USR_Sys_OtherCP
KBCategory: kbprg
KBSubcategory: GdiPrn
Keywords : kb16bitonly


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, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.