Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation questions
Message
From
07/04/1999 15:59:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Word Automation questions
Miscellaneous
Thread ID:
00206188
Message ID:
00206188
Views:
44
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!
Next
Reply
Map
View

Click here to load this message in the networking platform