Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DoVerb()
Message
 
À
20/08/2003 08:03:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00821077
Message ID:
00824349
Vues:
24
Does Anyone know how to programatically open a word doc embedded in a general field using the following typical word operations. These work OK if I have a doc called MyDoc.doc. But how do I do this with a general field?

* ... oWord is initialized elsewhere ...
If VarType(oWord) != "O" .or. oWord.name != "Microsoft Word"
oWord = CreateObject("Word.Application")
EndIf
oWord.Documents.Open( "MyDoc.doc" )
oWord.PrintOut()
oWord.Documents.Close()
oWord.visible = .f.
oWord.Quit()
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform