PRB: PrintForm Blank Page or GPF Due to Video Color Depth >256

Last reviewed: February 26, 1996
Article ID: Q108470
The information in this article applies to:
  • Standard and Professional Editions of Microsoft Visual Basic for Windows, version 3.0

SYMPTOMS

The PrintForm method in Visual Basic is designed to send a bit-for-bit image of a non-MDI form to the printer.

Using the PrintForm method to print a form to a Hewlett-Packard (HP) LaserJet Series II can give a general protection (GP) fault from Windows due to the cause described below. An HP LaserJet Series IV can print a blank page due to the cause described below. Similar behavior may occur with other printers.

The problem can occur even on a simple form, such as a form with a PrintForm method in the click event of a single command button.

CAUSE

This memory problem can be caused by using a video driver with a color depth setting greater than 256 colors, or greater than 8 bits per pixel.

For example, a color depth setting of 65,000 colors, or 16 bits per pixel, can cause this memory management problem. A color depth setting of 24 bits per pixel for the video driver can also cause this memory problem.

WORKAROUND

To eliminate the GP fault or blank page problem, reset the color depth of the video driver on your system to 256 colors or less, or 8 bits per pixel or less.

STATUS

This behavior is caused by memory management limitations between the video driver and Windows.


Additional reference words: 3.00 lock freeze GP Fault hang fail IIp laser
KBCategory: kbprg kbprb
KBSubcategory: PrgCtrlsStd


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