BUG: Setting FontTransparent Has No Effect on Windows 95/98/Me (145726)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q145726 SYMPTOMS
When printing under Windows 95, Windows 98, and Windows Me, the FontTransparent property
of the Printer object fails to change the way that the text is printed on
the background. The FontTransparent property determines whether background
text and graphics are displayed in the spaces around and within characters.
The Visual Basic default for this property is True, meaning that the
background will display in the spaces around the text. Under Windows 95,
Windows 98, and Windows Me, the text will print as if FontTransparent is set to False, even
though it is set to True.
Additionally, whenever a NewPage method is issued, all text on the new page
will print as if FontTransparent is set to False even if it was printing
correctly on the previous page.
CAUSE
The background mix mode, which directly relates to the Visual Basic
FontTransparent property, and several other attributes of the printer
device context, are modified at the start of a page by Windows 95,
Windows 98, and Windows Me. This is a change in behavior from Windows NT and previous
versions of Windows that is not addressed properly by the Visual Basic
Printer Object. The problem should only affect the 32-bit version of Visual
Basic, although some cases of the 16-bit version exhibiting this behavior
have been reported. For more information on the cause, please see the
following article in the Microsoft Windows SDK Knowledge Base:
125696
: StartPage/EndPage Resets Printer DC Attributes in Windows 95
RESOLUTION
To work around the problem, call the SetBKMode Windows API function to set
the background mix mode. An example is shown in the More Information
section below.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
183163 BUG: Setting Orientation Changes Background Mix Mode for Printer
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbbug kbpending kbprint KB145726 |
---|
|