Ver Mensaje Individual
  #2  
Antiguo 21-01-2007
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Un ejemplo:

Código Delphi [-]
var
  Excel: OleVariant;
  Libro: OleVariant;
  Hoja: OleVariant;

begin
  Excel := ComObj.CreateOleObject('Excel.Application');
  Libro := Excel.WorkBooks.Add;
  Hoja := Libro.ActiveSheet;
  Hoja.Cells[1, 1] := 'Hola mundo';

  Libro.SaveAs('ejemplo.xls');
  Excel.Quit;
end;

// Saludos
Responder Con Cita