Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to start Excel with a speific file in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00353059
Message ID:
00353064
Views:
13
>I want to click a buttom to lunch Excel with a excel document which a get from getfile().

In the click event of the button:

lcFilename = GETFILE()

IF !EMPTY( lcFileName )
oShell = CREATEOBJECT( "Shell.Application" )

oShell.Open( lcFilename )
ENDIF

This uses the Windows Script Host (WSH), which has become a hot topic on the UT. If you have any questions about it, do a search for WSH.
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform