Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Screen in VFP app
Message
From
15/11/2004 11:57:53
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00960436
Message ID:
00961408
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform