Einzelnen Beitrag anzeigen

Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: Excel mit Delphi 8 VCL-Formularanwendung???

  Alt 24. Aug 2004, 15:06
Öffnet die angegebene Datei unter c:\temp\testapp

Delphi-Quellcode:
uses
  System.Reflection,
  Excel;

procedure TForm1.Button1Click(Sender: TObject);
var
  ExcelApp: Excel.Application;
  EmptyParam: TObject;
begin
  EmptyParam := System.Reflection.Missing.Value;
  ExcelApp := Excel.ApplicationClass.Create;
  ExcelApp.Workbooks.Open('C:\Temp\TestApp\Test.xls', EmptyParam, EmptyParam, EmptyParam, EmptyParam,
                          EmptyParam, EmptyParam, EmptyParam, EmptyParam, EmptyParam,
                          EmptyParam, EmptyParam, EmptyParam);
end;
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat