• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Funny font sizes when printing

I have some code that sets the printer, font name and font size for use in my program, typically, this is Arial Narrow, size 9 on a HP LaserJet 6L. Sometimes (it's totally random) the text is printed at a microscopic level and I have no idea why, has anyone ever encountered this?
0
Dan_Solo
Asked:
Dan_Solo
  • 3
  • 2
1 Solution
 
rovermCommented:
This only occurs when a previous print job 'forgot' to reset the printer.
Maybe you can send an INIT before sending your document.

0
 
Dan_SoloAuthor Commented:
Adjusted points to 150
0
 
Dan_SoloAuthor Commented:
Can you elaborate on "INIT", and could the same effect be created by simply setting the printer details again?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
rovermCommented:
Just setting the printer defaults again will not suffice !
You should try to reset the printer by software. In the old days you could send an escape code.
Maybe you should look up the escape code from the Laserjet's manual and send it by using the printer object.

Good luck,
RoverM
0
 
Dan_SoloAuthor Commented:
I'll look in to the general theory of resetting the printer, but I need a more generic way of doing it other than through the printers software, 'cos it will need to work on other types of printer.
0
 
lanceedmondsCommented:
Does this problem affect the whole page or just a portion of it (say when a particular font was requested)?  

If it affects the whole page, then the next step to resolve the problem is to change driver settings or use an older driver (such as the 4L driver).  However, 1st try changing the driver settings to "print truetypes as graphics".  If that does not fix the problem, then the problem is likely to be a VB or GDI issue.

If the problem only shows up on a particular section of the print job, then the problem has to be your code, or VB.

The "INIT" suggestion is a complete loss - forget it.  The HP driver sends a HPPCL datastream to the printer and the first thing it sends is a "reset", followed by the actual data stream that build the page image up in the printers memory.   This is standard behavior for (almost) all Windows drivers.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now