Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Word or WP from VFP
Message
De
23/04/1999 13:44:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211600
Message ID:
00211619
Vues:
31
Hi Phil ---

Try this (might need some small changes) (for Word97)

oWord=CREATEOBJECT("Word.Application")
oWord.Document.Open("Filename",,.T.)

The third parameter is ReadOnly. Now VB help shows it as a variant so .T. may not work....


>>>Hi all,
>>>
>>>I need to launch an instance of Word (for some users) and/or WordPerfect using a filename (l_cfname) stored in a table.
>>>
>>>Can someone help me with the syntax?
>>>
>>>TIA
>>
*Works with word95&97
>>oWord = getobject("","word.basic")
>>oword.fileopen(lcMyFilePathAndName)
>>oword.appshow
>
>Thanks, Cetin!
>
>One more question....
>
>When doing a "File>Open" in native Word97, a user can highlight the filename and then right-click and get the "Open read only" option. Any way to modify your sample code to use the OpenReadOnly choice?
>
>TIA
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform