Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 12th, 2003, 10:14 AM
jayrye715 jayrye715 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 35 jayrye715 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Printing information from a form

Hi everyone,
I have a form that I need to print the information that it contains.
I have put a command button on the form. I need it to print when it is clicked. Does anyone have any ideas.
Thanks in advance for your help.
__________________
Jay Rye
:Cool:

Reply With Quote
  #2  
Old August 12th, 2003, 10:28 AM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 6
Try this assuming your button is called cmdPrint:

Under the private sub cmdPrint_Click
type PrintForm

Reply With Quote
  #3  
Old August 12th, 2003, 10:29 AM
jayrye715 jayrye715 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 35 jayrye715 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Is there a way that I could format the data so that it ready able. Like from a datareport

Reply With Quote
  #4  
Old August 12th, 2003, 10:36 AM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 6
what do you mean by ready able?

Reply With Quote
  #5  
Old August 12th, 2003, 10:39 AM
jayrye715 jayrye715 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 35 jayrye715 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
sorry on the spelling just got in a hurry.
It is suppose to be readable

Reply With Quote
  #6  
Old August 12th, 2003, 10:44 AM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 6
if you have the information on a form, it should print the data out juast as it is shown on the form. Did you try thr print button to see if it worked now?? On the properties of the button, make sure the on-click event has event procedure listed - that will bring you right to the spot you need to dump that "PrintForm" into.

Reply With Quote
  #7  
Old August 12th, 2003, 10:47 AM
jayrye715 jayrye715 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 35 jayrye715 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Yes I tried it and it worked it is just that each form could have several notes attached to it. With this there is only the notes that are showing. I need to be able to see all the notes.

Reply With Quote
  #8  
Old August 12th, 2003, 10:53 AM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 6
Put the notes in a label or text box on the form as well. You can make them invisible on the form and then, before the PrintForm, make them visible and they will be printed (If they are not empty).

Good luck!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Printing information from a form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway