Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Word to point back to VFP
Message
De
01/06/1999 01:03:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/05/1999 12:56:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00224698
Message ID:
00224794
Vues:
26
>Hello,
>
> I'm developing an app that will use Word Automation to generate
>letters, merge, etc. from a VFP app. I've been looking at API calls
>FindWindow, ShowWindow, and SetForegroundWindow to control the Word application object, the idea being that I could invoke a method that would display and set the focus to the Word app (I want to spare the users from repeated ALT-Tabs as they're using the app). I got that part of it working fine (good articles by George Tasker, 08/98, and Hank Fay, 09/98 in Advisor). What I want to know is, is there a way Word can display and set the focus back to the VFP app through VBA?
>I was thinking of passing the hwnd of the VFP app to Word somehow, but I don't even know if VBA will allow SetForegroundWindow or something similar. If anyone has managed to do this, could you give me hint of the right approach to take? Thanks
>
>Rod Poujade
>McGill University
>Montreal, Canada
VBA would allow SetForeGroundWindow but you don't need it since VFP itself has native activate.
Check mailmerge class in files\classes section.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform