Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation questions
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Word Automation questions
Divers
Thread ID:
00206188
Message ID:
00206188
Vues:
43
I am trying to an automatic mail merge from within foxpro 6.0
to word 97. It works ok except the word document stays in
the background and I need it to come on top of foxpro and
be the active app. Here's the code I'm using:


public oWord
tmpsheet=getObject('','word.document')
oWord =tmpsheet.application
oWord.visible = .t.
oWord.WindowState=1
oWord.application.documents.open("&document")

Also, how do I close the document and leave word open?
And, How do I close Word?

Thanks in advance for the help!

Eddie
If Bill Gates had a penny for every time windows crashed he'd be... Oh wait he does!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform