Hi,
Ich hätte da ein Problem auf das ich einfach keine Antwort finde. Und zwar benutze ich in einem Programm Excel um aus Paradoxtabellen Daten zu extrahieren um sie dann als Exceltabelle auf Diskette abzuspeichern. Rein Programmiertechnisch hab ich schon alles hinbekommen, jedoch gibt es nach einer unfreiwilligen Neuinstallation meines Rechners (Win2000) nun Probleme. Versuch ich nun aus meinem Programm heraus auf Excel (Excel2000) zuzugreifen bekomm ich nur noch die Fehlermeldung „..EintfCastError, Schnittstelle nicht unterstützt...“ zu sehen. Auf einem anderem Rechner (WinXP) läuft das Programm fehlerfrei.
Hat jemand eine Ahnung? Typenbibliothek vielleicht? Wenn ja was kann ich tun?
N`bißchen Quelltext hätt ich och noch:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
| flcid:=GetUserDefaultLCID; ExcelApplication1.Connect; ExcelApplication1.Visible[flcid]:=true; ExcelApplication1.UserControl:=true; WBK:=ExcelApplication1.Workbooks.Add(xlWBATWorksheet, flcid);
ExcelWorkbook1.ConnectTo(ExcelApplication1.ActiveWorkbook); WS:=ExcelApplication1.activeSheet as _Worksheet;
WS.Cells.Item[1,1].Value:='';
WBK:=ExcelApplication1.Workbooks.Application.ActiveWorkbook; SaveChanges:=true; WBK.Close(SaveChanges,'a:\DSich'+IntToStr(j)+IntToStr(m)+'.xls',EmptyParam,flcid); ExcelApplication1.Quit; ExcelApplication1.Disconnect; |
Wie gesagt bin mir eigentlich sicher das der Code funktioniert. Vielleicht kann mir ja einer helfen.
Christian
Moderiert von
Tino: Delphi-Tags hinzugefügt.