VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Using the Printer Object 3 Part Laser Checks

Jeff Underwood  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Advanced   Wed 3rd February 2021

This module will show how to use the printer object
programmatically, in this case to print 3 part laser
checks but anyone can use this on a laser printer with
plain paper. I think it is about compact as it can be
there are some variables that are not used yet. Notes
on their purpose are documented.
This shows how to use Printer.TextHeight and
Printer.TextWidth for something useful.
Please rate my code if you find it useful. ;)

Inputs
None required. Just place a button on a form, add this module to the project and in the OnClick event of the button call DoCheckDemo.

Assumes
This may not work with all printer drivers, but does work fine with laserjet II and 4 drivers.

Side Effects
None know, it might print 4 pages or more with some printer drivers, in this case the values in the Init3PartLaserChecks will need modification.

Rate Using the Printer Object 3 Part Laser Checks (2(2 Vote))
Using the Printer Object 3 Part Laser Checks.bas

Using the Printer Object 3 Part Laser Checks Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters