Autor Beitrag
haribert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Win 98 SE, Win 2000, Win XP
Delphi 5 prof. Delphi 7 prof.
BeitragVerfasst: Mi 14.05.03 12:14 
Hallo!

ich hab da ein Problem bei der Integration von Excel in ein Delphi Programm. Ich mache es wie in dem Turorial www.delphi-forum.de/viewtopic.php?t=152
angegeben. Beim Compilieren erhalte ich auch keine Fehler. Starte ich dann aber das Programm kommt bei mir folgende Fehlermeldung:
Zitat:
Im Projekt bla ist eine Exception der Klasse EOleSysError aufgetreten. Meldung: 'ColInitialize wurde nicht aufgerufen' ...

Kennt jemand diese Meldung und weiß wie ich das abstellen kann?
Wär super - Danke schon mal

Gruß
Uwe

Moderiert von user profile iconTino: Quote-Tags hinzugefügt.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mi 14.05.03 16:50 
Probier's mal so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
uses
  ActiveX;

initialization
  CoInitialize(nil);

finalization
  CoUnInitialize();
haribert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Win 98 SE, Win 2000, Win XP
Delphi 5 prof. Delphi 7 prof.
BeitragVerfasst: Do 15.05.03 08:37 
Titel: ...schon mal ein Stück weiter...
Hallo,

Danke für den Tip. Die erste von mir genannte Fehlermeldung kommt jetzt nicht mehr, jetzt kommt folgende Meldung:

Im Projekt bla ist eine Exception der Klasse EOleException aufgetreten. Meldung: Ausnahmefehler des Servers

Das ist total merkwürdig, weil ich den Excel-Export auch schon mal hinbekommen habe - in einer Testanwendung die sonst nix tut. An was könnte sich denn eine Excel-Automation noch stören? Diese problematische Excel-Geschichte ist auf jeden Fall der einzige OLE-Prozess in meiner Weichware, ansonsten sind da nur DBase-Datenbankauswertungen via BDE und Auswertungen via QuickReport. Werden vielleicht irgendwelche Ressourcen knapp? So riesig ist das Programm allerdings auch wieder nicht.

Gruß
Uwe