PRB: Setting FontTransparent Has No Effect on Windows 95Last reviewed: July 7, 1997Article ID: Q145726 |
The information in this article applies to:
SYMPTOMSWhen printing under Windows 95, 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, 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.
CAUSEThe 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. 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(s) in the Microsoft Windows SDK Knowledge Base:
ARTICLE-ID: Q125696 TITLE : StartPage/EndPage Resets Printer DC Attributes in Windows 95 RESOLUTIONTo 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.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe code to duplicate the problem is as follows:
|
Keywords : APrgPrint kbprint vb416 vb432 kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |