Autor Beitrag
Poehlau
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Do 19.01.06 13:38 
Ich habe Delphi7, allerdings fehlt bei mir die Komponente, womit ich Excel automatisieren kann (TExcel).
Woher kann ich diese Komponente bekommen und installieren?
Danke!
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Sa 21.01.06 09:58 
Hast Du evtl. die Personal-Version. Wenn ja: Pech gehabt. Da gibt's die nicht.

Aber Du kannst die Schnittstelle selbst importieren (www.delphipraxis.net...xcelapplication.html)
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 21.01.06 14:26 
schau dir doch mal
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
uses ComObj;

var
 XLApp: olevariant;


begin
 XLApp := CreateOleObject('Excel.Application');
 XLApp.visible := true;
 XLApp.workbooks.Add;

 xLApp.cells[3,5].value := 'test';

 if not VarIsEmpty(XLApp) then //Excel Schliessen
 begin
   XLApp.Quit;
   XLAPP := Unassigned;
 end;

end;

an. ist zwar nicht ganz so modern, funktioniert aber bei mir ;-)

Moderiert von user profile iconGausi: Snip-Snip durch Delphi-Tags ersetzt