Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Screen in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00113820
Message ID:
00165294
Views:
20
>
>
>>I have used this solution and it works pretty good. My question is there anyway that it would only print the active window in the FoxPro screen?
>>DLC
>
>Sure, all you need is the handle for the active window. Use the GetFocus API call to get the handle then call the PrintWindow routine. This is the Printform method from my base form class.
>
>
>DECLARE INTEGER GetFocus IN WIN32API
>oApp.PrintWindow(GetFocus(), oApp.cApplicationName + ": " + THISFORM.Caption)
>RETURN
>
Thanks for the API call! It works like a champ.
DLC
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Previous
Reply
Map
View

Click here to load this message in the networking platform