Autor Beitrag
BlackPhantom
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 144

Win 2000, Win XP, UNIX
D7 Prof, C, HTML, VB 5
BeitragVerfasst: Do 28.10.04 11:25 
Hi@all

Ich wollte fragen wie es damit aussieht, wie man sowas (Duplikaten-Sucher) mit Delphi selber programmieren kann. Wie lauten die einzelnen Befehle, wie ich auf Zellen Spalten zugreifen kann, von Delphi aus.

Könnt ihr mir da Ansätze liefern oder Tutorials oder Dokumentationen dazu o.ä.? Ich hab daran gedacht ersteinmal herauszufinden wie eine Excel-File aufgebaut ist. Ist das ein guter logischer Anfang oder habt ihr da besseres auf Lager?

thx4all
BlackP


Moderiert von user profile iconKlabautermann: Topic aus Off Topic verschoben am Do 28.10.2004 um 14:57
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Do 28.10.04 14:56 
Hallo,

gucke mal unter Suche in: Delphi-Forum, Delphi-Library EXCEL ADO, dammit kannst du den zugriff verwirklichen.

Gruß
Klabautermann
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Do 28.10.04 16:04 
odlg_excelfile ist ein Openfile Dialog
ausserdem musst du die Unit comobj in die uses Klauses aufnehmen.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm1.Button19Click(Sender: TObject);
var app_excel : Variant;
     test : String;
begin
  if odlg_excelfile.Execute then
  begin
    app_excel := CreateOleObject('Excel.Application');
    app_excel.visible := false;
    filename := odlg_excelfile.FileName;
    app_excel.Workbooks.Open(filename);
    test := app_excel.workbooks[1].Sheets[1].Cells.Item[1,1];
  end;
end;

öffnte eine Exceldatei und liest das Feld der ersten Zeile aus

_________________
mfg. Joel
BlackPhantom Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 144

Win 2000, Win XP, UNIX
D7 Prof, C, HTML, VB 5
BeitragVerfasst: Fr 29.10.04 14:27 
thx....damit hab ich auf jeden Fall einen großen Schritt gemacht, bzw. damit habt ihr mir geholfen einen großen Schritt zu machen. Nochmals thx