Avatar of sjm32157
sjm32157
 asked on

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.
Microsoft DevelopmentProgrammingVisual Basic Classic

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
Thommy

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

ASKER CERTIFIED SOLUTION
Jacques Bourgeois (James Burger)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck