Results 1 to 2 of 2

Thread: Printer Fonts not working properly

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Brisbane, QLD, Australia
    Posts
    10

    Exclamation

    I am trying to print information from my database using the Printer.printer function. The printout is so small that I have to increase the size of the fonts to 35 using code, it then works fine on my system,but this is no good because as soon as I try the App on another computer the printout fonts are 3 times the size.
    Has anyone got an anwser??

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    I noticed that on several versions of vb (eg vb5 without sp)
    the printer object has problems with the fonts. I also noticed that this normally can be fixed by assuring that setting a font actually changes the font of the printer. So if I want to print in Arial i set the font to Courier New first (could be anything as long it isn't arial and it is present on the clients machine).
    eg
    Printer.Font = "Courier New"
    Printer.Font = "Arial"
    Printer.Font.Size = 9
    Printer.Print "Hello World"

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