
Help: VB4: Print Method: How use true type fonts when printing to Laser Printers
Hi,
I'm trying to print to my laser printer using a Win95
true type font which doesn't work.
I'm *really* stuck here, after reading TFM and online
help a couple of times, so I'd appreachiate any help from a real Pro.
The task seems to be simple enough:
- To print "hello world" using the Arial true type font face
onto a HP LaserJet 6 or HP LaserJet 4.
Here's what I tried (using Visual Basic 4 Professional 32bit):
printer.font.name = "Arial"
printer.font.size = 20
printer.print "hello world"
printer.EndDoc
This produces a piece of paper with hello world on it,
but the LaserJet 4 is not effected by either font size
nor font face. The LaserJet 6 reacts to the font size
command, but prints everything in "Times".
If I use the above code to print into a form,
the chosen font is used.
Any hints, please :)
Martin Borus
Martin(at)borus.de