Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Screen in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00113820
Message ID:
00164934
Vues:
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
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform