Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Screen in VFP
Message
De
06/07/1998 09:24:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00113820
Message ID:
00114499
Vues:
34
>>>I'm trying to add print screen capabilities to a VFP app. I understand that you can copy the contents of a screen to the clipboard with Alt-PrintScrn and that you can paste those contents into a general field in a database. I haven't been able to create a report that prints general fields, though. Is it possible?
>>>
>>>Or, is there some command or API call that will dump the contents of the clipboard straight to the printer?
>>>
>>>This app is targeted towards folks who are not necessariliy computer-literate, so I want to make this as simple as possible.
>>>
>>> TIA,
>>> ROB
>>
>>OLEBound report field will print general field content.
>
>Aha! So it will!
>
>Now the question splits into two sub-questions...
>
>1) What is the KeyCode for the PrintScrn button so that I can activate it programmatically with something like KEYB '{ALT+PRINTSCRN}'? I've tried most combinations of the letters PRINTSCRN and none seem to work.
>
>2) How do you paste the image from the clipboard into a general field in a table programmatically?
>
>TIA (again),
> Rob

Basically, you should use api call keybd_event to print screen programmatically. After this, modify general command with keyboard ctrl+v will do the job.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform