AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Meldung "Interface not supported" Woher?

Ein Thema von BrotherLui · begonnen am 30. Jan 2007 · letzter Beitrag vom 31. Jan 2007
Antwort Antwort
BrotherLui

Registriert seit: 14. Jun 2006
26 Beiträge
 
Delphi 7 Enterprise
 
#1

Re: Meldung "Interface not supported" Woher?

  Alt 30. Jan 2007, 12:39
Danke für die Antwort.

Ich weiß leider nicht was du mit COM-Schnittstelle meinst. Ich zeige mal wie ich das mache.

So öffne ich Excel: (Das funktioniert noch)
Delphi-Quellcode:
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UMain, StdCtrls, ComCtrls,IniFiles,ExcelXP, ExtCtrls,Contnrs,Systeme,StrUtils,
  Menus;
...

form1.ExcelApplication1.Workbooks.Open(dateiname,EmptyParam, EmptyParam,
                               EmptyParam, EmptyParam, EmptyParam,
                               EmptyParam, EmptyParam, EmptyParam,
                               EmptyParam, EmptyParam, EmptyParam,
                               EmptyParam, EmptyParam, EmptyParam,lcid);
form1.ExcelWorkbook1.ConnectTo(form1.ExcelApplication1.Workbooks.Item[ExtractFileName(edit1.Text)]);
form1.ExcelWorksheet1.ConnectTo(form1.ExcelWorkbook1.Sheets.Item['Schnittstelle'] as _WorkSheet);
So greife ich auf die Dateien zu: (Hier kommt der Fehler)

Delphi-Quellcode:
uses Windows,Dialogs,SysUtils,Maus,ExcelXP,ComCtrls, Forms;
...

Excelapplication1.Workbooks.Item[1].Activate(GetUserDefaultLCID);
if ExcelWorksheet1.Range['B3', 'B3'].Value2 = 1 then
begin
  ExcelWorksheet1.Range['B3', 'B3'].Value2 := 0;
  ExcelWorksheet1.Range['B2', 'B2'].Value2 := aktzahl;
  ExcelApplication1.Run('makro1');
....
Und so sieht die Fehlermeldung aus: siehe Anhang
Angehängte Grafiken
Dateityp: gif interface_165.gif (10,6 KB, 10x aufgerufen)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:43 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz