Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Word or WP from VFP
Message
De
23/04/1999 13:42:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211600
Message ID:
00211617
Vues:
25
>>>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
<pre>oWord.fileopen(tcInFile,0,1) 
&& Open file w/o confirm conversions and RO
oWord.fileopen(tcInFile,,1) 
&& This is legal too and ignores confirmconversions setting - uses default
Details are in wrdbasic.hlp file located at ..\Microsoft Office\Office.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform