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?
 
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
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.