|
-
Jan 15th, 2004, 09:09 AM
#1
Thread Starter
New Member
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
-
Jan 15th, 2004, 09:16 AM
#2
Only TrueType fonts can be rotated. This may have been mentioned by the 'old' API example...
-
Jan 15th, 2004, 09:45 AM
#3
Thread Starter
New Member
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.
-
Jan 15th, 2004, 09:51 AM
#4
I thought you were refering to this post. Suggest you give it a try.
-
Jan 15th, 2004, 10:30 AM
#5
Thread Starter
New Member
Thnx for your time! I'll give it a try...
/Daniel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|