Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to: cut & paste Word97 doc with form elements
Message
 
À
21/11/2002 16:34:11
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00725449
Message ID:
00725611
Vues:
10
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!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform