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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This only occurs when a previous print job 'forgot' to reset the printer.
Maybe you can send an INIT before sending your document.

Dan_SoloAuthor Commented:
Adjusted points to 150
Dan_SoloAuthor Commented:
Can you elaborate on "INIT", and could the same effect be created by simply setting the printer details again?
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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,
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.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.