Einzelnen Beitrag anzeigen

ZeroQool007

Registriert seit: 30. Aug 2004
127 Beiträge
 
#1

CreateOleObject in welcher uses bei delphi 2006 .net?

  Alt 27. Mär 2006, 15:46
Hallo, wollte folgenden Quellcode ausführen, bekomme aber eine Fehlermeldung.
Delphi-Quellcode:
var
  excel : Variant;
Begin
  OpenDialog1.Execute();
  excel:=CreateOleObject('Excel.Application');

Zitat:
CreateOleObject = undef. Bezeichner

das ist meine uses:
Delphi-Quellcode:
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Borland.Vcl.Db, Borland.Vcl.ADODB, System.ComponentModel,
  Borland.Vcl.StdCtrls, Borland.Vcl.Grids, Borland.Vcl.DBGrids, System.Reflection, ShellApi, Borland.Vcl.ComObj ;
Früher stand mal createoleobject in ComObj, aber nun nicht mehr. Weiß jemand Rat? thx, cu
  Mit Zitat antworten Zitat