Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The LPR.EXE command is limited to sending 2GB print jobs


Symptoms

Attempting to send a large print job with the LPR.EXE command will result in a timeout when the 2GB threshold has been exceeded.

↑ Back to the top


Cause

LPR.EXE uses signed integer variables which will limit the size of jobs to 2GB.

NOTE: The 64-bit LPR.EXE code is using the same data types, and thus has the same limitations.

↑ Back to the top


Resolution

Use the application creating the files you are attempting to print to generate jobs of less than 2GB in size.

Third party and open-source LPR clients may also provide a workaround.

↑ Back to the top


More Information

Windows Data Types
http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx

  • Signed integer value range: -2,147,483,648 to +2,147,483,647
  • Unsigned integer value range: 0 to 4,294,967,295

Line Printer Daemon Protocol
http://www.ietf.org/rfc/rfc1179.txt

↑ Back to the top


Keywords: vkball, kb

↑ Back to the top

Article Info
Article ID : 2403052
Revision : 1
Created on : 1/8/2017
Published on : 9/8/2010
Exists online : False
Views : 166