BUG: Must Call API to Print Color Text on Color Printer in VBLast reviewed: June 21, 1995Article ID: Q84269 |
The information in this article applies to:
SYMPTOMSVisual Basic for Windows does not directly support printing text in color to a color printer.
WORKAROUNDTo print in color, you must first make a call to the Windows API function SetTextColor(). The example below shows how to implement this call into a Visual Basic application to allow for printing of colored text.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post more information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe ForeColor property of the Printer object was not fully implemented in Visual Basic. You can set the property, but the setting has no effect. To send color output to a color printer, you must use the Windows API function call SetTextColor() instead of the ForeColor property of the Printer object. Do the following to print "Hello" in all of the 16 QBColors:
|
Additional reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |