Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to: cut & paste Word97 doc with form elements
Message
 
To
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:
00725611
Views:
9
So you started using parameter and you do not get the message "..large amount of text..." anymore? Then what about Application.Quit (True) ?

I assume that your macro is in the document. Probably it cause a conflict when you close application from the document. What if you create this macro in, say, global template, and run it from there?

Also if you run 'my' code from VFP, does it work as you need?

>>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!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform