Thema: Delphi Delphi und Ecxel

Einzelnen Beitrag anzeigen

Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#3

Re: Delphi und Ecxel

  Alt 17. Okt 2003, 09:59
Hi!

Das geht so:

Delphi-Quellcode:
uses
  ComObj;

procedure TForm1.Button1Click(Sender: TObject);
var
  excel: OleVariant;
begin
  excel := CreateOleObject('Excel.Application');
  excel.WorkBooks.Add;
  excel.Visible := True;
  excel := Unassigned;
end;
Thomas
  Mit Zitat antworten Zitat