Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 97 Mail Merge with Outlook Open
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00253735
Message ID:
00253752
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform