Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Screen in VFP app
Message
De
15/11/2004 11:57:53
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00960436
Message ID:
00961408
Vues:
15
Vladimir--


>Use this:
>   DECLARE INTEGER GetDesktopWindow IN Win32api
>    DECLARE INTEGER PrintWindow IN DibApi32 ;
>    INTEGER HWnd, ;
>   INTEGER fPrintArea, ;
>   INTEGER fPrintOpt, ;
>   INTEGER wxScale, ;
>    INTEGER wyScale, ;
>    STRING @ szJobName
>    LOCAL nRetVal,cJobName && title you want to show when printing
>
>    cJobName = 'Print Screen' && could be passed as a parameter, also.
>
>    nRetVal = PrintWindow(GetDesktopWindow(),1,1,0,0,@cJobName)
>    IF nRetVal != 0
>        IF nRetVal != 6 && 6 = User canceled printing
>            MESSAGEBOX("Unable to print the window" + chr(10) + ;
>           "See System Administrator " + STR(nRetVal),48, ;
>            "FUBA Print Screen ")
>        ENDIF
>    ENDIF
>You need too DIBAPI32.DLL in your path.


This appears to work (when DibApi32.dll is in the same directory as my EXE). I would prefer to include DibApi32.dll in my EXE. When I put it in Other Files in the Project, my new print screen said it could not find DibApi32.dll.

Any thoughts?

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

Click here to load this message in the networking platform