954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help printing from vb

Hi, can you guys please tell me how I can print a screenshot of a form?
I am linking to a database and I want to print the form with the names of fields etc...
Cheers

uniquestar
Posting Whiz in Training
245 posts since Feb 2005
Reputation Points: 49
Solved Threads: 11
 

I'm pretty sure you can do a:

form1.print


or it might be printform form1 (it's also possible that it's form1.printform).
Either way, one of those will definately print the form :)

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

Sorry, when i say print, i mean output to a printer.
soz

uniquestar
Posting Whiz in Training
245 posts since Feb 2005
Reputation Points: 49
Solved Threads: 11
 

So do I. The method (maybe it's printform) prints the form to the printer.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 
So do I. The method (maybe it's printform) prints the form to the printer.

Thanks, I used the

Private Sub mnuprint_Click
frm1.PrintForm
End Sub


and that worked fine.
Cheers.

uniquestar
Posting Whiz in Training
245 posts since Feb 2005
Reputation Points: 49
Solved Threads: 11
 

Hy! I`ve tried your method with frm1.printForm, and didn't work! I have a forma let`s say that is forma_start, and a function from toolbox PrintDocument1, and i want to print the form. How can i do this.. plz an answer!

edytzuu
Newbie Poster
1 post since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You