Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word 97 Mail Merge with Outlook Open
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00253735
Message ID:
00253752
Vues:
14
>Hello,
>
>I have a Word mail merge routine that uses the Createobject function to create a Word Object. The users have Outlook for email which uses Word as the editior. The routine works correctly when outlook is closed, but 2 instances of Word appear when Outlook is open and some of the Word automation commands don't work correctly. Any ideas?
>
>Thanks,
>
>George

Sounds like you're orphaning an existence of Word. Try checking for the object before creating a new one.
if type('oword.name')='U'
oword=createobject('word.application')
endif
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform