How To Print Text Sideways in a Picture Box Using Win32 API (154515)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.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, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154515 SUMMARY
By using the CreateFont and CreateFontIndirect Win32 API calls, it is
possible to rotate text on a Device context such as a picture box, a form,
or the Printer Object. This article provides a Win32 Code sample
demonstrating how this can be done.
REFERENCES
For additional information about how to properly rotate text using a printer, please see the following
article in the Microsoft Knowledge Base:
175535 PRB: Printing Rotated Text with Visual Basic
For additional information about the 16-bit equivalent of this sample, please see the following
article in the Microsoft Knowledge Base:
119673 How to Print with Rotated Text
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbAPI kbhowto KB154515 |
---|
|