Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Prism CreateOleObject in welcher uses bei delphi 2006 .net? (https://www.delphipraxis.net/66266-createoleobject-welcher-uses-bei-delphi-2006-net.html)

ZeroQool007 27. Mär 2006 15:46


CreateOleObject in welcher uses bei delphi 2006 .net?
 
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


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz