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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb how to print the form ?

Status
Not open for further replies.

prgm

Programmer
Apr 28, 2005
6
US
Hi all

I have created a form in vb6.0 in which the users enter some data and is saved to a text file. when the user hits the submit button..i have an option to ask then if they want the copy of the form(the quesitons and the answers tat they gave) as a printout.

I don't know how to add the print command and also get the form in a structured way without the textbox outlines.

Please lemme know soon
Thanx
 
have a search/post in Visual Basic(Microsoft): Version 5 & 6 Forum (forum222)

________________________________________________________________________
Zameer Abdulla
Visit Me
Children are poor men's riches.
 
Technically speaking, Zameer is correct, as you mention VB 6.0 - this is VBA. However, esentially, the answer is the same.

You can print the form directly using UserForm.Print. Note however, this sends a bit-by-bit image of the form to the default printer. Bit-by-bit...therefore it sends it exactly as it is on screen. There is no formatting possible, it is a screen dump really.

If you want it "structured", you are going to have to make one.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top