>>>>I know there have been so many messages regarding this, because I've looked at them all (just about). I still can't get my head around it though and am wondering if anyone has a clear cut solution.
>>>>
>>>>I want to do a Print Screen without having to go through Word. Just a procedure within VFP, which will print the form (via Clipboard, I have noticed the query earlier today regarding this and that would be fine, question now is how to print the thing).
>>>>
>>>>Thanks a bunch. Rene.
>>>Hi Rene,
>>>In files section there is sysinfo.zip (Vladimir Shevchenko). One of methods is capturescreen. Following implements a basic example using it to capture to a general field which could be edited, printed etc later.
>>>
>>>*A button click (or transparent shape.click)
>>>thisform.sysinfo1.capturescreen(.f.) && Capture active window
>>>create cursor test (bmptest g) && Create a cursor
>>>append blank
>>>keyboard "{Ctrl+pgdn}"
>>>keyboard "{Alt+E}"
>>>keyboard "{P}"
>>>keyboard "{Ctrl+W}"
>>>keyboard "{Ctrl+W}"
>>>browse nowait && These are just for click and continue
>>>
>>>Instead of placing to a cursor you could launch a windows app or call another form with a oleboundcontrol :
>>>
>>>*Captured
>>>run /N paint.exe
>>>
>>>I think of doing this process for inserting to a word doc as each capture called. If I do I'll place a copy to files or KB section.
>>>Cetin
>>
>>Thank you Cetin. I've decided to do it through Word after all. One comment regarding the CTRL+V: I suppose the Edit menu needs to be accessible for that, and that is obviously not always the case (at least not in my app.).
>>
>>Rene.
>
>Rene, Cetin's proposal is workable and can be implemeted seamlessly (10-15 lines of code for whole thing) and you even don't need in special VCX. Also, it's a good idea to add Edit menu to your app (it's always available, even for modal forms).
I'll back what Ed says with code. Thanks to the folks on UT, a co-worker developed the seemless screen print from within VFP apps. Clerks wanting a copy of whats on the screen merely click a cmd button and trot off to the printer.
If you want the complete code just email me at
jkreps@rev.state.ne.us
Nebraska Dept of Revenue