Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 20.09.05 11:44 
Hallo. Kann mir bitte jemand helfen. Ich möchte die MYSQL Tabelle nach Excel exportieren. Geht das nur mit OLE Object?
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Di 20.09.05 11:47 
Du hast die Möglichkeit, per ODBC (also Automation) auf deine MySQL Datenbank zuzugreifen, oder du greifst per direkter MySQL API darauf zu. Übersetzungen der C-Header Files und bereits fertige Komponenten dafür findest du im Internet:

Suche bei Google DELPHI MYSQL
Torry -> MySQL

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 20.09.05 11:58 
Hallo. Ich glaube du hast mich falsch verstanden. Ich programmierte mit Delphi 7 und verwenden MYSQL nun möchte die die "SELECT" Tabellen nach EXCEL
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Di 20.09.05 12:19 
Achso,
Naja du könntest eine CSV Datei anlegen, da stehen dann per Semikolon separierte Werte drin (such mal auf wotsit.org nach der genauen CSV Beschreibung. Dann brauchst du das nicht über Automation von Excel machen. Abgesehen davon ist es aber "hübscher", das per COM zu machen, weil du dann auch die ganzen Fähigkeiten von Excel ausschöpfen kannst. Anlaufstelle hierfür wäre ja dann das Excel Developer Center.

Gruß

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 20.09.05 12:55 
Hallo. Hier habe ich die Lösung gefunden:

www.delphipraxis.net/post87397.html

Wie kann ich den Feldnamen in eine String Variable einlesen?


Zuletzt bearbeitet von Karstadt am Do 22.09.05 09:02, insgesamt 1-mal bearbeitet
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Di 20.09.05 12:56 
Ich weiß nicht, welche Komponenten du nutzt, aber bei ADO gibt doch DataSet.Fields[Index].FieldName den Feldnamen als String zurück, oder?

Moderiert von user profile iconKlabautermann: Delphi-Tags hinzugefügt.

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 20.09.05 13:27 
Hallo. Ich bin blind!
ausblenden Delphi-Quelltext
1:
TQuery.Fields[x].fieldname					


Danke!

Moderiert von user profile iconKlabautermann: Delphi-Tags hinzugefügt.
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: Di 20.09.05 13:34 
Hallo,

wenn du beits eine Zieltabelle (struktur) besitzt dann kannst du auch dieses Fertige Programm nutzen ;).

Gruß
Klabautermann
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Di 20.09.05 15:34 
Selber programmieren macht mehr spass ;)
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Do 22.09.05 09:01 
Das funktioniert ganz gut!