Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Automation Changing Excel Tablename
Message
De
23/07/2001 11:04:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00533881
Message ID:
00533931
Vues:
10
select * from ctablename into cursor dummy
thisform.excelfile='TEST'
COPY TO (THISFORM.excelfile) TYPE XL5
cTabelle=fullpath(curdir())+alltr(thisform.excelfile)+'.XLS'

MESSAGEBOX(cTabelle+' ERZEUGT',0)

***excel starten
oExcel=createobject('excel.application')
if type('oExcel')#'O'
wait wind 'kein Excel installiert' timeout(3)
return .f.
endif

oExcel.Workbooks.Add(cTabelle)
oExcel.activesheet.cells.select
oExcel.Selection.font.name="arial"
oExcel.Selection.font.size=8
oExcel.Selection.Columns.AutoFit
oExcel.visible=.t.

At this point Excel appears with the headding 'Microsoft Excel - Test1' not 'TEST' as expected.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform