Microsoft KB Archive/272114

= BUG: EndPage Fails with Large Spool Files =

Article ID: 272114

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q272114



SYMPTOMS
When you print a high-resolution image or a complex drawing that yields a large spool file, the EndPage function may fail and return -1, and the GetLastError function may return 8 (&quot;Not enough storage is available to process this command&quot;).



RESOLUTION
If you are an application developer and you are developing an application that could be affected by this problem, consider rendering to a DIB section and then using SetDIBitsToDevice/StretchDIBits to send the DIB data to the printer. This method will help to reduce the size of the spool file.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: prin spool spooler

Keywords: kbbug KB272114

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.