Autor Beitrag
MysticMike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 21



BeitragVerfasst: Mo 22.05.06 12:02 
Hi!

Ich habe folgendes Problem. In meinem Programm erzeuge ich beim Start in der FormCreate mittels
ausblenden Delphi-Quelltext
1:
2:
3:
  ExcelStage:= CreateOleObject('Excel.Application');
  ExcelStage.Workbooks.Open('C:\Dokumente und Einstellungen\user\Eigene Dateien\Stage.xls');
  ExcelStage.sheets[1].activate;


ein Excel-Objekt und lade Daten aus einer Tabelle rein. Wenn ich im FormClose
ExcelStage.Workbooks.close;
aufrufe wird aber Excel scheints nur manchmal beendet. Jedenfalls steht es trotz Beendigung meines Programms im Taskmanager unter Prozesse.

Weiß jemand woran das liegt, oder muss ich die Excel-Datei vielleicht in einer anderen Prozedur beenden?

greetz MysticMike
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mo 22.05.06 12:08 
Probiers mal mit

ausblenden Delphi-Quelltext
1:
ExcelStage.Disconnect;					

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
MysticMike Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 21



BeitragVerfasst: Mo 22.05.06 12:32 
Hi!

Disconnect führt zu der Fehlermeldung: Die Methode 'Disconnect' wird vom Automatisierungsobjekt nicht unterstützt!

Ich probiers mal mit ExcelStage.quit;

Evtl. klappts ja damit.

greetz Mystix
Peter Wolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WinXP Pro
Delphi7 Ent.
BeitragVerfasst: Mo 22.05.06 15:34 
Hallo MysticMike,

hatte mal das selbe Problem. Hier die Lösung:

www.entwickler-forum...1NkQ0.12@.2cb7d77c/1

Grüße
Peter