-
print vertically
Hi!
I want to print a string vertically on a form (as well as on the printer object). I saw this was possible to achieve by using WinAPI calls, but the API example I found was old, it didn't work for VB6.
Someone who knows how to change the orientation of the printout?
regards
/Daniel
-
Only TrueType fonts can be rotated. This may have been mentioned by the 'old' API example...
-
Thanks for the answer. I think maybe I was just a little unclear regarding my question...
The line VB cannot execute is this:
---CUT---
nvalue = getdevicecaps(Picture1.hdc, 34)
---CUT---
, where I get an overflow error. It doesn't matter if I declare nvalue as a Variant, I get an overflow error anyway. I guess this error doesn't depend on the font, it arises because the return value of getdevicecaps does not fit in variable nvalue.
The reason i mentioned the old VBs, was that the help stated:
---CUT---
Article ID: Q99874
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for
Windows, versions 2.0 and 3.0
- Microsoft Visual Basic for Windows, version 1.0
---CUT---
pheeeww...
thanks again, I hope this was a more specific question. :)
-
I thought you were refering to this post. Suggest you give it a try.
-
Thnx for your time! I'll give it a try...
/Daniel