Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrintScreen from within VFP app
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00103303
Message ID:
00103328
Views:
46
>I was polling folks more or less at random at DevCon on this, and several said something like "I'm sure there must be an API call to do this", or "I searched for an API call for this once, but couldn't find it".
>
>I'm working on an app that *requires* the ability to do a PrintScreen from within the app. Hitting the PrintScreen key (to get the screen onto the clipboard) and then doing something else is ok. However, This is a vertical market app, so I can't count on the user having any Office components available to employ OLE automation.
>
>Has anyone figured a way to do this? *Is* there a set of API calls that would get a screen shot spit out to a printer?
>
>Thanks
Steve,

As far getting the screen into the clipboard that isn't a problem. Recently, I posted the API call to do that. Just do a search here for keybd_event. If you want I'll repost it.

The printer is another matter, and would require getting a Device Context, transfering the bits, opening the printer, etc. I've never tried it, but I imagine it would be much like the code that recently appeared in Advisor ("Ask Advisor"). If you like, I'll play around with it, and see if I can get it to work.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform