Microsoft KB Archive/75092

= BUG: Duplicate PostScript Font Names in VB Printer.Fonts List =

Article ID: 75092

Article Last Modified on 11/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q75092



SYMPTOMS
When a PostScript printer driver is active in Microsoft Windows version 3.0, the Fonts(index%) property of Visual Basic's Printer object may return one or more duplicate font names at run time. This will not occur in either Visual Basic version 1.0 or 2.0 if you are using Microsoft Windows version 3.1.



CAUSE
This problem is caused by Microsoft Windows version 3.0 itself, not by Microsoft Visual Basic.



STATUS
Microsoft has confirmed this to be a problem with Microsoft Windows version 3.0. The problem was corrected in Microsoft Windows version 3.1.



MORE INFORMATION
The following program displays the list of font names available for the PostScript printer currently selected in the Windows Control Panel: Sub Form_Click For J% = 0 to Printer.FontCount - 1 Print Printer.Fonts(J%) Next J%  End Sub In some cases, when a PostScript printer is active in Windows, one or more fonts are listed twice.

Additional query words: 2.00

Keywords: kbbug KB75092

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.