Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to: cut & paste Word97 doc with form elements
Message
From
21/11/2002 16:34:11
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00725449
Message ID:
00725469
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform