Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 2403052 - Last Review: September 8, 2010 - Revision: 1.0

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.

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.

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.

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

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Microsoft Windows Server 2003 Service Pack 2
  • Microsoft Windows XP Service Pack 3
  • Windows Vista Service Pack 2
  • Windows Server 2008 Service Pack 2
Keywords: 
KB2403052
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate