Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening Files
Message
From
12/06/2003 10:56:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00799257
Message ID:
00799372
Views:
32
Neil,

You want to open the .txt file in Word? What is the purpose, simply editing, or just to show it to the user?

For simple editing, you can use MODIFY FILE "u:\help.txt", as Cetin suggested. If you only want to display it to the user, you can use a readonly editbox on a VFP form.

An easy way to open a document in Word is using ShellExecute API #12636, but that will only work if the file has a .doc extension. If you *really* need to open the file in Word, you can use Word automation.

>I have done that I think so but it still does not work.
>
>What is the usual convention for opening a Word Document
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform