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!