Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Excel 2007
Message
De
22/10/2008 13:22:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Problem with Excel 2007
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01356362
Message ID:
01356362
Vues:
53
Hello
This code has been working ok in Excel 2003, but fails where indicated in Excel 2007 with "OLE error code 0x80020005: Data type mismatch"
...
copy to (Thisform.Ascii) Xl5
...
oE = Createobject("Excel.Application")
oE.Workbooks.Open(Thisform.Ascii)
oHoja = oE.Workbooks(1).Sheets(1)
oHoja.Range("A1") = "Legajo"
oHoja.Range("B1") = "Apellido, nombre"
....
oHoja.Rows("1").RowHeight = 60
oHoja.Columns("C:ZZ").ColumnWidth = 15 && ******this line  fails in excel 2007
oHoja.Rows("1").VerticalAlignment = 3
....
Any ideas?
TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform