Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create current version XLS File
Message
 
 
À
15/09/2006 09:58:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01154055
Message ID:
01154078
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>I'm using Excel automation in VFP.
#DEFINE xlWorkbookNormal -4143	
LOCAL oExcel AS Excel.Application
lcXlsFile = FULLPATH("Test.xls")
COPY TO (lcXlsFile) XL5
oExcel = CreateObject("Excel.Application")
oExcel.DisplayAlerts = .F.
*oExcel.Visible = .T.
oWorkbook = oExcel.Workbooks.Open(lcXlsFile)
oWorkbook.SaveAs(lcXlsFile, xlWorkbookNormal)
oExcel.Quit
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform