Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a Worddocument in with VFP7
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945445
Message ID:
00945485
Views:
16
Thank you for your answer!
You have solved my problem.
Your examples helped me to find more information about this.
/Kjell



>You can open Word and then the document with OLE Automation.
>
>ox = CREATEOBJECT('Word.Application')
>ox.documents.open("Path and Doc Name")
>
>However, it sounds like you don't necessarily want to open Word every time, but rather the program that's associated with the file type selected. For that, you can use the SHELLEXECUTE() command to open the correct program, but then you don't have control over that program the way you do with Automation.
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
>        INTEGER lnHWnd, ;
>        STRING lcAction, ;
>        STRING lcFileName, ;
>        STRING lcExeParams, ;
>        STRING lcDefDir, ;
>        INTEGER lnShowWindow
>lnResult = ShellExecute( 0, 'open', lcFileName, "", "", 1 )
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform