Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Export to Excel with format
Message
De
10/01/2006 01:36:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Export to Excel with format
Versions des environnements
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01085043
Message ID:
01085043
Vues:
59
Dear Teachers,

To export data to Excel, I use following command
select master1
Copy to C:\gin_exp.xls type xls FIELDS LIKE C*,D* EXCEPT CREDIT,DR_CR

loExcel = createobject("Excel.Application")
loWorkbook = loExcel.workbooks.open('C:\gin_exp.xls')
loSheet = loWorkbook.sheets(1) && or pass the name of your sheet as a string!
loExcel.Visible = .T. && display Excel
thisform.refresh
It works fine and there is no problem.
But how to apply following formats in above excel sheet,
comma format
Column autofit

Please help
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform