Hi guys,
I try to connect to Microsoft Excel, I have code (see sample under) when I'm running under Windows XP it works fine but, when I perform the same code on windows 2000 or 2003 server I have the error "Access violation at address..."
The code where the error appears is:
Try
ExcelWorkbook1.ConnectTo(E
xcelApplic
ation1.Wor
kBooks.Ope
n(FileName
,0,False,5
,VarEmpty,
VarEmpty,T
rue,xlWind
ows,VarEmp
ty,False,F
alse,VarEm
pty,VarEmp
ty,lcid,Va
rEmpty,Var
Empty));
except
on E: Exception do
begin
//E.Message := 'Erreur ';
MessageDlg(E.Message, mtInformation,[mbOk], 0);
Exit;
end;
end;
Can you help me to run it on windows servers systems?
Regards.
Lebougre.
Start Free Trial