Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to printing the current form to the printer?
Message
De
11/06/1998 03:29:12
 
 
À
11/06/1998 01:23:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00106560
Message ID:
00107063
Vues:
20
>>Does anyone know if there is a method to print the currently displayed form to the printer from inside a VFP5 application? I kind of suspect I may have to do some API stuff to get it to happen.
>>
>>Thanks
>>Costas
>
>Save following code to Capture.prg
>Code From Cert., Thanks
>

>* Capture.prg
>*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)
>

>
>At any Event, Such as Label1.Click, use Capture()
>Then, the screen image is captured!!
>Open PaintBrush or any tool to paste the Whole screen!!
>
>
For exist software tool to capture single non-full screen window.
>I would recommend you to use LView Pro 2.01!!
>
>http://tucows.shaw.wave.ca/files/tucows_lvsetup.exe
>
>1.3 MB only!! Easy Use and FREEEEEEEEEEEE!!
>Of cos, I also got some hacker site for better tools but this free tool is enough!! ^_~
>
>p.s. Sorry for putting WebSite URL here! :P

Hello,

I have just tried outthe code that was shown to us here but UI experienced some problems. It does not work always. Of course, there is another problem : it captures the entire screen and not only the active window ... or am I missing something here ?

Pat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform