Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00188041
Message ID:
00189031
Views:
26
I believe you need 'SELECT screen_capture' placed before the 'REPORT FORM'. Otherwise it works brilliantly. Thanks.


>
>1) Define a report called PRINTSCR.FRX with a general field in it
>
>2) Have your button execute the following code:
>
>LOCAL cArea
>cArea = SELECT()
>DECLARE INTEGER keybd_event IN Win32API ;
> INTEGER, INTEGER, INTEGER, INTEGER
>keybd_event(44,0,0,0)
>CREATE CURSOR screen_capture (screen G)
>APPEND BLANK
>DEFINE WINDOW screen_capture FROM 100,100 TO 263,263
>MODIFY GENERAL screen_capture.screen NOWAIT WINDOW screen_capture
>KEYBOARD "{Ctrl+V}{Ctrl+W}" CLEAR
>RELEASE WIND screen_capture
>DOEVENTS
>REPORT FORM ('printscr') TO PRINTER NOCONSOLE
>USE IN screen_capture
>SELECT (cArea)

Rgds
Petras Virzintas
Previous
Reply
Map
View

Click here to load this message in the networking platform