BUG: Must Call API to Print Color Text on Color Printer in VB (84269)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q84269 SYMPTOMS
Visual Basic for Windows does not directly support printing text in
color to a color printer.
WORKAROUND
To 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.
STATUS
Microsoft 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.
| Modification Type: | Major | Last Reviewed: | 12/12/2003 |
|---|
| Keywords: | kbbug KB84269 |
|---|
|