Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Export to Excel with format
Message
From
10/01/2006 01:36:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Export to Excel with format
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01085043
Message ID:
01085043
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform