Need help printing from vb

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Feb 2005
Posts: 238
Reputation: uniquestar is an unknown quantity at this point 
Solved Threads: 11
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Need help printing from vb

 
0
  #1
Mar 4th, 2005
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
Tip of the Millenium: There is no point worrying about life, because no-one gets out alive.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Need help printing from vb

 
0
  #2
Mar 4th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 238
Reputation: uniquestar is an unknown quantity at this point 
Solved Threads: 11
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Re: Need help printing from vb

 
0
  #3
Mar 4th, 2005
Sorry, when i say print, i mean output to a printer.
soz
Tip of the Millenium: There is no point worrying about life, because no-one gets out alive.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Need help printing from vb

 
0
  #4
Mar 4th, 2005
So do I. The method (maybe it's printform) prints the form to the printer.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 238
Reputation: uniquestar is an unknown quantity at this point 
Solved Threads: 11
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Re: Need help printing from vb

 
0
  #5
Mar 6th, 2005
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.
Tip of the Millenium: There is no point worrying about life, because no-one gets out alive.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1
Reputation: edytzuu is an unknown quantity at this point 
Solved Threads: 0
edytzuu edytzuu is offline Offline
Newbie Poster

Re: Need help printing from vb

 
0
  #6
Mar 26th, 2008
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!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 7393 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC