Results 1 to 7 of 7

Thread: How to print font in printer?

  1. #1
    Guest

    Wink

    hi there:
    i use api CreateFont and CreatFontIndirect to have my font (i just want to change the ont's orientation), and it shows good in form and picture box.. when i try to print it.. i change the picture.hdc to printer.hdc... it doesn't work at all... can someone help me please... if you need the sample, please email me

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    the printer probably dosen't support the fon't. also, try putting it in a picture box and printing it as a picture, this might work
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Guest
    Maby you forgott this action

    lngNewFont = CreateFont(Size, 0, 0, 0, .Weight, .Italic, .Underline, .Strikethrough, .Charset, _
    0, 0, 0, 0, .Name)

    lngOldFont = SelectObject(Printer.hdc, lngNewFont)

  4. #4
    Guest

    Cool

    I didse that one... it just can not print it 270° orientation.. but i did work good in picture box.... think maybe printer can not support some font like sans or something..... opinions are appreciate

  5. #5
    Guest
    Send me the code and i look for the wrong part ok

  6. #6
    Guest
    Send it please to [email protected]

  7. #7
    Guest
    Make sure you are using a Printer font or a TT Font (not a Screen Font).

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