I initialize the component to xvExcel97 and i call a Clear(0) then the version is changed to xvExcel2007.
Code: Select all
XLS.Version := xvExcel97;
XLS.Clear(0);
NB: if you use Clear (instead of Clear(0)), there is the same pb.
Code: Select all
XLS.Version := xvExcel97;
XLS.Clear(0);