944,167 Members | Top Members by Rank

Ad:
Mar 4th, 2005
0

Need help printing from vb

Expand Post »
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
Similar Threads
Reputation Points: 49
Solved Threads: 11
Posting Whiz in Training
uniquestar is offline Offline
239 posts
since Feb 2005
Mar 4th, 2005
0

Re: Need help printing from vb

I'm pretty sure you can do a:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. 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
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 4th, 2005
0

Re: Need help printing from vb

Sorry, when i say print, i mean output to a printer.
soz
Reputation Points: 49
Solved Threads: 11
Posting Whiz in Training
uniquestar is offline Offline
239 posts
since Feb 2005
Mar 4th, 2005
0

Re: Need help printing from vb

So do I. The method (maybe it's printform) prints the form to the printer.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 6th, 2005
0

Re: Need help printing from vb

Quote originally posted by Comatose ...
So do I. The method (maybe it's printform) prints the form to the printer.
Thanks, I used the

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub mnuprint_Click
  2. frm1.PrintForm
  3. End Sub

and that worked fine.
Cheers.
Reputation Points: 49
Solved Threads: 11
Posting Whiz in Training
uniquestar is offline Offline
239 posts
since Feb 2005
Mar 26th, 2008
0

Re: Need help printing from vb

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edytzuu is offline Offline
1 posts
since Mar 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: sending two integer using vb6.0?
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Urgent - I cannot view crystal report in my VB application...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC