>>Does anyone know if there is a method to print the currently displayed form to the printer from inside a VFP5 application? I kind of suspect I may have to do some API stuff to get it to happen.
>>
>>Thanks
>>Costas
>
>Save following code to Capture.prg
>Code From Cert., Thanks
>
>* Capture.prg
>*function ScreenCapture
>lparameters lActiveWin
>DECLARE keybd_event IN Win32API;
>SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo
>lnsnapshot = 44
>return keybd_event(lnsnapshot, iif(lActiveWin,0,1), 0, 0)
>
>
>At any Event, Such as Label1.Click, use
Capture()>Then, the screen image is captured!!
>Open PaintBrush or any tool to
paste the Whole screen!!
>
>
For exist software tool to capture single non-full screen window.
>I would recommend you to use LView Pro 2.01!!
>
>
http://tucows.shaw.wave.ca/files/tucows_lvsetup.exe>
>1.3 MB only!! Easy Use and FREEEEEEEEEEEE!!
>Of cos, I also got some hacker site for better tools but this free tool is enough!! ^_~
>
>p.s. Sorry for putting WebSite URL here! :P
Hello,
I have just tried outthe code that was shown to us here but UI experienced some problems. It does not work always. Of course, there is another problem : it captures the entire screen and not only the active window ... or am I missing something here ?
Pat