Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE with Excel - I'm stumped
Message
 
À
27/06/2003 09:14:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00804575
Message ID:
00804643
Vues:
70
Cetin

My code in the form's init is

*Form.init
this._webBrowser41.Navigate2('file://c:\downloads\mertest.xls')

*Once you do this you've access to excel's object model too. ie:

oXLS = thisform._webbrowser41.object.document

oExcel = oXLS.Application
oExcel.ActiveWorkbook.ActiveSheet.Range('E1:E7').Value = 'sheet1'
oExcel.Application.ActiveWorkbook.Save()


This is the offending line

oExcel = oXLS.Application

Thanks

Colin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform