Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to: cut & paste Word97 doc with form elements
Message
De
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:
00725469
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform