Autor Beitrag
nooby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44

Win XP Pro.
D7
BeitragVerfasst: Di 09.03.04 14:12 
hallo,

habe folgende Befehle um auf eine Excel-Datei zuzugreifen.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
          flcid:=GetUserDefaultLCID;
          ExcelApplication1.Connect;
          ExcelApplication1.Visible[flcid]:=true;
          ExcelApplication1.UserControl:=true;

---->   ExcelWorkbook1.ConnectTo(ExcelApplication1.Workbooks.Open(strXLSDatei,
               emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam,
               emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam,
               flcid));
          ExcelWorksheet1.ConnectTo(ExcelWorkbook1.Sheets.Item[1] as ExcelWorkSheet);


Das hat unter Win 2000 mit Office 2000 und Mdac 2.5 prima funktioniert.
Unter Win XP mit Office XP und Mdac 2.7 öffnet er zwar noch Excel, aber nicht mehr die Datei (s. Pfeil).

Hat jemand eine Ahnung, woran das liegen könnte?

Moderiert von user profile iconPeter Lustig: Delphi-Tags hinzugefügt