Save changes, without changes!?
Posted: Mon Jan 29, 2007 4:26 pm
Hello,
i create a simple xls file with:
So, if i open this file and close it again (WITHOUT any changes), Excel ask me: Save the changes?
WHY??
Thanks and sorry for my english!
Robert
(XLSReadWriteII2 Ver. 3.00.07, Delphi 6 Prof., Excel 2000)
i create a simple xls file with:
Code: Select all
var
xls : TXLSReadWriteII2;
FS : TFileStream;
begin
try
XLS := TXLSReadWriteII2.Create(NIL);
XLS.Version := xvExcel97;
XLS.Sheet[0].AsInteger[0,0] := 1;
XLS.Sheet[0].AsInteger[0,1] := 2;
XLS.Sheet[0].AsFormula[0,2] := 'SUM(A1:A2)';
FS := TFileStream.Create('C:\~temp.xls', fmCreate);
XLS.WriteToStream(FS);
finally
FS.Free;
XLS.Free;
end;
end;
WHY??
Thanks and sorry for my english!

Robert
(XLSReadWriteII2 Ver. 3.00.07, Delphi 6 Prof., Excel 2000)