PRB: Printing Rotated Text with Visual Basic (175535)
The information in this article applies to:
- 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
This article was previously published under Q175535 SYMPTOMS
If you try to print rotated text using the Printer object from Visual Basic
with Visual Studio 97 Service Pack 2 or 3 using the technique described in
the following Microsoft Knowledge Base article, the text fails to rotate:
154515
HOWTO: Print Rotated Text Using Win32 API
CAUSE
Visual Studio 97 Service Pack 2 and 3 for Visual Basic 5.0 and 6.0 include a fix for the Printer object that prevents any new SelectObject calls from
selecting a new Font for the Printer.hDC. So, when referencing the Printer
object, new fonts must be selected via the Printer object's properties or
they are ignored.
RESOLUTION
To work around this problem, either print using the API only, or do not
reference the Printer object while printing with the API functions.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbAPI kbGDI kbprb kbprint KB175535 |
---|
|