Column Width result an access violation
Posted: Thu Jan 29, 2009 10:21 pm
Hi,
I have an error when i tried to set a column width in my excel file with xlsreadwrite version 4.00.15
I put this code
XLS.Sheet[0].Columns[0].Width := 12;
and i have an access violation in the unit Columns4.pas on the Fwidth := Value; in this procedure
procedure TXLSColumn.SetWidth(Value: integer);
begin
if (Value < 0) or (Value > $FFFF) then
raise Exception.Create('Invalid value');
FWidth := Value;
end;
FWidth is an inacessible value and i don't know why ?
It is a bug or my error ?
thanks
I have an error when i tried to set a column width in my excel file with xlsreadwrite version 4.00.15
I put this code
XLS.Sheet[0].Columns[0].Width := 12;
and i have an access violation in the unit Columns4.pas on the Fwidth := Value; in this procedure
procedure TXLSColumn.SetWidth(Value: integer);
begin
if (Value < 0) or (Value > $FFFF) then
raise Exception.Create('Invalid value');
FWidth := Value;
end;
FWidth is an inacessible value and i don't know why ?
It is a bug or my error ?
thanks