PDA

Click to See Complete Forum and Search --> : How to print font in printer?


Sep 9th, 2000, 05:45 PM
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

gwdash
Sep 11th, 2000, 06:51 PM
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

Sep 15th, 2000, 05:50 AM
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)

Sep 15th, 2000, 11:24 AM
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

Sep 15th, 2000, 11:32 AM
Send me the code and i look for the wrong part ok

Sep 15th, 2000, 11:33 AM
Send it please to M.Kaltenbacher@gmx.at

Sep 15th, 2000, 02:53 PM
Make sure you are using a Printer font or a TT Font (not a Screen Font).