Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launching Word or WP from VFP
Message
From
23/04/1999 13:42:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00211600
Message ID:
00211617
Views:
27
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform