Results 1 to 5 of 5

Thread: print vertically

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    6

    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

  2. #2
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    Only TrueType fonts can be rotated. This may have been mentioned by the 'old' API example...

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    6
    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.

  4. #4
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    I thought you were refering to this post. Suggest you give it a try.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    6
    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
  •  



Click Here to Expand Forum to Full Width