Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A way to print a form Programatically ???
Message
De
08/05/1998 04:10:07
 
 
À
07/05/1998 12:19:23
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00097432
Message ID:
00097964
Vues:
27
>>>>Is there a easy way to print a form with all his controls and control values to printer ???. A way to issue 'print screen' key programatically ??.
>>>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)This would capture the screen to clipboard (thanks to G.Tasker). You could programmatically create a cursor with a gen field and paste this one. Then print via report or OLE automation.
>>>Cetin
>>
>>Cetin,
>>
>>I used your (or G. Tasker's) ScreenCapture function and all went well but I'm not clear on the pasting to a general field. How is this done programatically?
>>
>>Thanks.
>
>I think this will work ..
>MODIFY GENERAL NOWAIT
>KEYB "{CTRL-V}"
>KEYB "{CTRL-W}"
>
>What I've never been clear on is how to programatically clear general fields. What do you REPLACE the field with ?
>EG. REPLACE ALL with

I have never checked it, but perhaps 'blank fields' will work.
Saludos,
A.G.P.
---------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform