>Try to use parameters. It works for me:
>
>....
>oWord.ActiveWindow.Close(0) && close document, do not save or as needed
>oWord.Quit(-1) &&save it, though not quite clear what to save if document already closed
>....
In this situation, I am not saving the Word document at all,
and the specific functionality you refer to is not being driven
by VFP code, but by a VBA macro.
My app fires up Word and activates it (transfers control).
When the user is ready to return to the VFP app, s/he clicks
on my Word toolbar, which runs a macro. The VBA macro is
what copies WholeStory to the clipboard and Quits word.
Here is the VBA macro.
Sub OK()
Selection.WholeStory
Selection.Copy
Application.Quit (False)
End Sub
It just seems that if the document contains form fields, it
does not get copied to the clipboard.... at least not when i
do that macro!!
patrick