TXLSColumn.GetPixelWidth Error using 3.01.05
Posted: Fri Sep 05, 2008 10:34 am
Please consider this test code with XLSReadWriteII2 version 3.01.05:
FXLS := TXLSReadWriteII2.Create(Self);
FXLS.FileName := 'test.xls';
FXLS.Read;
Memo1.Lines.Add(IntToStr(FXLS.Sheets[0].Columns[0].PixelWidth));
I generates an AccessViolation on this line in Columns2.pas:
Line 242: FFormats.Fonts[0].CopyToTFont(F);
Am I doing something wrong or is it a bug?
Tor Erik
FXLS := TXLSReadWriteII2.Create(Self);
FXLS.FileName := 'test.xls';
FXLS.Read;
Memo1.Lines.Add(IntToStr(FXLS.Sheets[0].Columns[0].PixelWidth));
I generates an AccessViolation on this line in Columns2.pas:
Line 242: FFormats.Fonts[0].CopyToTFont(F);
Am I doing something wrong or is it a bug?
Tor Erik