Article ID: 153125 - Last Review: June 29, 2004 - Revision: 3.0 BUG: Printer Object Font Information is Lost After PrintingThis article was previously published under Q153125 On This PageSYMPTOMS
The printer object loses all of its font information, including font size,
boldness, underlining, etc., after an initial call to Printer.Print has
been made.
CAUSE
This problem occurs because of the way the Windows 95, Windows 98, Windows Me, Windows NT, and Windows 2000 printer drivers work. They require applications to re-send printer settings for each page. Visual Basic 4.0 does not automatically do this.
This behavior is described in the article mentioned in the REFERENCES section below. RESOLUTION
To work around this problem, add the following statements to the beginning
of the Command1_Click procedure, as shown in the following example:
Each time the CommandButton is pressed, the output should print correctly. Starting a new page will also reset the Printer's font information to its defaults, so you will need to reset the printer after each NewPage method. Page level Information, such as orientation, will not need to be reset. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Problem
REFERENCES
For more information, please see the following article in the Microsoft
Knowledge Base:
125696
(http://support.microsoft.com/kb/125696/EN-US/
)
: StartPage/EndPage Resets Printer DC Attributes in Windows95
| Article Translations
|
Back to the top
