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:
00164934
Views:
19


>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
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform