Help: VB4: Print Method: How use true type fonts when printing to Laser Printers 
Author Message
 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



Mon, 03 Sep 2001 03:00:00 GMT  
 Help: VB4: Print Method: How use true type fonts when printing to Laser Printers
I think there may be a bug in the printer driver. Try printing a full stop (period) and THEN changing fonts.

Simon Jones
MillStream Designs Ltd
Independent IT Consultants



Tue, 04 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with printing true-type fonts with VB4.0

2. Printer.Print not printing text using selected font

3. Print color to printer using Print Method

4. Can't print symbol true type fonts.

5. How to view/print fonts true type?

6. Printing aligned columns with True Type fonts, how?

7. Help using true type fonts

8. Help using true type fonts

9. Help using true type fonts

10. GWBasic: printing CHR$ codes to laser printer?

11. font and size with printer.print VB4

12. Print very slow on Laser Printer

 

 
Powered by phpBB® Forum Software