Re: printer.font.size




"Kyle" <me@xxxxxxxxxxx> schreef in bericht
news:mo6dnXadB5lzjLHZnZ2dnUVZ_vqdnZ2d@xxxxxxxxxxxxxx
"G Doucet" <someone@xxxxxxxxxxxxxxx> wrote in message
news:6MQWf.51909$VV4.877707@xxxxxxxxxxxxxxxxxxxxxxxxxx
| Is there a reason why my HP deskjet 3600 series printer will prints
my text in size 12 or something. My VB code sets the printer
| font size to 6 and then loops through a recordset printing text.
What's strange is that sometimes it will print the right size. I
| have also seen this before. Not sure if I have to reboot my
computer or the printer or if it's something I'm not doing right.
|
| Printer.Font.Name = "Arial"
| Printer.Font.Size = 6
| Printer.Font.Bold = False
|
| BTW, is there a limit as to how small the font can be?
|
| Thanks for all,
| Guy
|
|

Shouldn't the code look like this for VB 4 thru 6 (some periods
removed):

Printer.FontName = "Arial"
Printer.FontSize = 6
Printer.FontBold = False

--
Best regards,
Kyle


From VB6 help:

Note The FontSize property is included for use with the CommonDialog
control and for compatibility with earlier versions of Visual Basic. For
additional functionality, use the new Font object properties (not available
for the CommonDialog control).

Note The FontBold, FontItalic, FontStrikethru, and FontUnderline
properties are included for use with the CommonDialog control and for
compatibility with earlier versions of Visual Basic. For additional
functionality, use the new Font object properties (not available for the
CommonDialog control).

Note The FontName property is included for use with the CommonDialog
control and for compatibility with earlier versions of Visual Basic. For
additional functionality, use the new Font object properties (not available
for the CommonDialog control).

Bas.


.



Relevant Pages

  • Re: printer.font.size
    ... | control and for compatibility with earlier versions of Visual Basic. ... | additional functionality, use the new Font object properties (not ... | for the CommonDialog control). ...
    (comp.lang.basic.visual.misc)
  • Re: Windows Default Printer not being Reset
    ... the CommonDialog control t o change the Windows ... The VB printer object then "reads" the ... user's desired settings by "looking at" the default printer settings. ...
    (microsoft.public.vb.general.discussion)
  • Re: Print Problem
    ... I do have access to the Common Dialog Control in my projects. ... Dim itmX As ListItem, hdrX As ColumnHeader ... Despite all the "knocking" it gets, the VB Printer Object is ... If you've got the CommonDialog control in VBA ...
    (microsoft.public.vb.general.discussion)
  • Re: Windows Default Printer not being Reset
    ... Dialog control, and does not have its own bult in printer dialog, so it ... relies on the system allowing the CommonDialog control to alter the Windows ... The VB printer object then "reads" the ... user's desired settings by "looking at" the default printer settings. ...
    (microsoft.public.vb.general.discussion)
  • Re: Pathname and Filename
    ... I've been so gun-shy about using the CommonDialog control ... > unless you have seriously strong objections to UserForms, the CommonDialog ... Your UserForm doesn't even need any code in it: ... >> I want the dialog box to be looking for graphics files so I'd like to ...
    (microsoft.public.word.vba.beginners)