Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6/Word Automation - How do I keep Word active ?
Message
 
 
À
05/05/2001 17:54:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00503941
Message ID:
00504013
Vues:
22
Dick,

Is your oWord object going out of scope?

>I'm sending a report from a VFP6 form through Word (97) for printing. When I get the report finished, I want to make Word visible and active until the operator has a chance to do any modifications, prints it, and either closes Word or returns to the VFP application (where I will close Word).
>
>The code looks like so:
> oWord = CreateObject("Word.Application")
> * create the report
> * now I want to make it visible and activate it
> oWord.Visible = .t.
> oWord.Application.Activate()
> * the Visible works, Word flashes on screen and immediately closes
> * and I'm returned to the calling (VFP) form.
>
>How do I make Word stay active until the operator closes it ?
>
>TIA,
>Dick
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform