Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table to Excel
Message
 
 
À
07/01/2004 18:09:05
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00864895
Message ID:
00864900
Vues:
13
Joel,

You can use WSH or ShellExecute API #12636. For example,
lcExcelName = "MyTableExcel.xls"
SELECT mytable
COPY to (lcExcelName)  type xls
* WSH
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run(FULLPATH(lcExcelName))
* Win API
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd
=Shellexecute(0,"Open",FULLPATH(lcExcelName),"","",1)
>How do I send a table to Excel?
>
>I know I just:
>Use MyTable
>Copy to MyTableExcel type xls
>
>But I want to open Excel and have it displaying MyTableExcel
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform