2008 Visual Basic Printing Question

Our company needed a program to print checks, nothing fancy, just something to enter the basic info, put a check in the printer and click the button.  I built a program using 2008 VB.  Info is entered on one form and then organized on a second print form that uses the default printer and the Printer Powerpack.  I tested it on 3 or 4 different computers and a couple of terminal servers after I published.  Worked great and lined up perfectly with the pre-printed checks.  I rolled it out to the users and it works for about half of them, the others the info lines are all over the place.  Did I miss a setting on my print form?  any info appreciated.
sjm32157Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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

ThommyCommented:
Are you printing on different printers?
The cause maybe the varying printer Default Fonts.

You  should check the available Printer fonts and explicitly set the printer font and font size somehow like that...

For i=0 To Printer.FontCount - 1

 If Printer.Fonts(i) Like "Arial*" Then

 Printer.FontName = Printer.Fonts(i)

Printer.FontSize = 10

Open in new window

0
Jacques Bourgeois (James Burger)PresidentCommented:
PrintForm prints a bitmap of the screen, and thus depends heavily on the screen resolution. If users work with monitors that have different resolutions, they will get different results from PrintForm.

This feature was provided mainly as a replacement for the old VB6 PrintForm, which already had this problem.

If I where you, I would work with a PrintDocument instead. This is the .NET way of doing custom printing. It is not as easy to use as PrintForm and requires a lot of trials and errors before you get things right, but since it is dependent on units of measure instead of the screen definition. it enables you to more easily print the same way from different environments.
0

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
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
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
Microsoft Development

From novice to tech pro — start learning today.