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

Screen Print Directly 2

Status
Not open for further replies.

lashwarj

IS-IT--Management
Joined
Nov 1, 2000
Messages
1,067
Location
US
Is there any quick code I could write to make a print screen button.
 
Sweet worked great thank you Ramani
 
If you want a fuller implementation that sends the screen shot directly to the printer, go to the UT ( click on the Download
picture on the right, and choose the Visual FoxPro area. Next enter 'capture' (without the quotes) in the Description area and press Enter. You should get back (at least) an entry for:
Print Screens from VFP November 15, 2000 22:56
Print screens and forms directly from VFP using custom classes and DibApi32.dll.

Go to the full information page, and download it by clicking on the hyperlink.

Rick
 
Rick, the one that ramani recommended does do that, I am just trying to pla around with being able to select the printer now
 
No, I believe his link provides code that simply places the snapshot into the clipboard. You'd then have to paste it into a document and print the document.

Rick

 
It prints for me directly to the printer


 
I am so sorry Rick you are correct, I had another program running in my system tray called Hardcopy which is used for screen capturing, i am sorry
 
Hi
Rick is right. My pointed thread helps to only copy to clip board.

This is also equivalent to Pressing Alt+PrintScreen key which copies the form or screen into the clipboard. Then you have to find the way to copy the ClipBoard content to an appropriate variable or memo field or general field and then send that to printer. As i mentioned, I am interested also in seeing any simple method to get a screen printout. This will help to make documentation easy. I also have elaborate method to capture screen from Web sites and save it to file etc. which in principle should work for this also. But I am also looking for a very simple method. :-)

:-) ramani :-)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
ramani, in your code what is storing the screen shot image is it the keybd_event or is it the system. I mean would it be as easy as setting the screen capture as the control source of an image thats it isometric
 
ok i have got a form that when you open it has a richtext control, you can then do a paste event on that, so if you could automate the ctrl + v command you are half way there
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top