Thema: Delphi OLE Excel Handle

Einzelnen Beitrag anzeigen

Anonymos
(Gast)

n/a Beiträge
 
#3

Re: OLE Excel Handle

  Alt 24. Mai 2009, 14:56
Hey,

Ich benutze nafür die Variable Variant in ComObj

Delphi-Quellcode:
ExcelApplication, ExcelWorksheet: Variant;

ExcelApplication := CreateOleObject('Excel.Application');
ExcelApplication.Visible := true;
ExcelApplication.Application.SheetsInNewWorkBook := 1;
ExcelApplication.Workbooks.Add;
ExcelWorlsheet := ExcelApplication.Sheets[1];
ExcelWorksheet.Select;
...
Das erstellt jedesmal eine neue ExcelApplication mit einem Worksheet.

Gibt es mehrere Möglichkeiten sowas zu öffnen?
Ich weiß zwar, dass es noch andere Schnittstellen gibt, damit kenn ich mich aber überhauptnicht aus.
  Mit Zitat antworten Zitat