Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00188041
Message ID:
00189031
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform