Ver Mensaje Individual
  #1  
Antiguo 26-06-2008
gaby_stars gaby_stars is offline
Miembro
 
Registrado: dic 2005
Posts: 27
Reputación: 0
gaby_stars Va por buen camino
Smile Error: Class EoleException, old format or invalid type.....

Hola buen día a Todos,
Espero y alguien me pueda ayudar..... Realice una aplicacion en Delphi 6 que genera un archivo de excel utilizando los componentes ExcelApplication. Tengo instalado un Offices 2003 cuando ejecuto la generacion del archivo me marca el error "Class EoleException, old format or invalid Type".
Como le hago para poder generar el archivo de excel teniendo un offices 2003?


Código Delphi [-]
lcid := GetUserDefaultLCID;
ExcelApplication1.Visible[lcid]:=True;
WkBk.ConnectTo(ExcelApplication1.Workbooks.Add(TOleEnum(xlWBATWorksheet), lcid));
WS.ConnectTo(WkBk.ActiveSheet as _Worksheet);
WS.Name:='Continental'+IntToStr(WkBk.Worksheets.Count);
ExcelContinental(dm.kbmGastos,WS.Name,1);








Salu2
Responder Con Cita