Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing into paper form

Status
Not open for further replies.

MikeCt

Programmer
Nov 6, 2001
44
US
Hi
I have a paper form that I need to fill in with data from the program I've written. I would like to print the form at the same time as filling in the data. I've been trying to find where to start but if I inquire about forms, I get info about building forms on the screen used with programing, not printing forms. If I inquire about reports I get info on gathering data into reports. The form I need to fill in has lines running horizontal and vertically with the data printed into the appropriate place. Is it as simple as building a form on the screen and using some form of print screen or is there a better way using a template that I design? Is there a form designer that works with VB6 for this purpose?

Thanks
Mike
 
You can print things on a page where you like, so with a bit of messing around you could get your program to print things in the right places.
Code:
Printer.CurrentX = 100
Printer.CurrentY = 200
Printer.Print "Hello world"
Printer.EndDoc
If you change the Printer.ScaleMode property to centimeters you could measure on the form with a ruler where to print things and use the measurements in VB.

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top