Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Excel Spreadsheet
Message
 
 
À
03/04/2003 07:41:33
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00773477
Message ID:
00773491
Vues:
8
>Hi All:
>
>Just looking for a code snippet to open an Excel Spreadsheet from within Fox. After it's open the User can have control, all I want to do is Browse for it and open it for them.
>
>Much Thanks !

Hi Irv,

You can use WSH http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.asp
oShell = CREATEOBJECT('WScript.Shell')
lcExcelFile = GETFILE("XLS")
IF NOT EMPTY(lcExcelFile)  
  oShell.Run(lcExcelFile)
ENDIF
or ShellExecute API #12636.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform