Autor Beitrag
beljo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Mo 04.12.06 16:39 
Hallo ich wollte mal versuchen ein Excle-File zu öffnen.
Leider klappt es nicht. Habe Delphi 6 und Winxp
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Button1Click(Sender: TObject);
begin
  FLCID:=GetUserDefaultLCID;
  ExcelApplication.Connect;
  ExcelApplication.Visible[FLCID] := True; // False wenn Excel unsichtbar sein soll
  ExcelApplication.UserControl := True;    // False wenn Excel unsichtbar sein soll
  ExcelApplication.DisplayAlerts[FLCID]:=False;
  ExcelApplication.AskToUpdateLinks[FLCID]:=False;



end;

Es wird angezeigt das FLCID ein undefinierter Bezeichner ist. Vielleicht kann mir ja jemand helfen.

p.s. ExcelApplication ist auf der Form drauf
NTM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120

Win XP
2005 Prof
BeitragVerfasst: Mo 04.12.06 16:42 
schau mal hier vielleicht Hilft es Dir www.dsdt.info/tipps/?id=605
beljo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Mo 04.12.06 17:13 
Naja,
Also ich kriege mit der Hilfe zwar Excel in meinen Arbeitsspeicher aber ich kriege es nicht zu Gesicht, warum?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
 ExcelApplication1.Connect;
end;