爱
爱睡的狗狗
Unregistered / Unconfirmed
GUEST, unregistred user!
我用循环将得到的数据写入到cell中。可是4000多条的记录只显示了45条,循环的确运行了4000多次。为什么不能全部显示。这是写入cell的代码,看看有没有问题
while not eof do
begin
Cell1.DoSetCellData (0, nRows, fieldbyname('A_Event').AsString);
Cell1.DoSetCellColor(0, nRows, RGB(255, 0, 0), RGB(255, 255, 255));
Cell1.DoSetCellData (1, nRows, fieldbyname('A_Time').AsString);
Cell1.DoSetCellData (2, nRows, fieldbyname('A_Unit').AsString);
Cell1.DoSetCellData (3, nRows, fieldbyname('A_IP').AsString);
Cell1.DoSetCellData (4, nRows, fieldbyname('A_Level').AsString);
Cell1.DoSetCellData (5, nRows, fieldbyname('A_List').AsString);
Cell1.DoSetCellColor(5, nRows, RGB(255, 0, 0), RGB(255, 255, 255));
Cell1.DoSetCellData (6, nRows, fieldbyname('A_Step').AsString);
Cell1.DoSetCellData (7, nRows, fieldbyname('A_Base').AsString);
Cell1.DoSetCellData (8, nRows, fieldbyname('A_Edition').AsString);
nRows:= nRows+1;
next;
end;
//cell1.Rows:=nrows;
Cell1.DoDrawLine(0,0,8,nRows,0,1,0);//设置表格线
谢谢先
while not eof do
begin
Cell1.DoSetCellData (0, nRows, fieldbyname('A_Event').AsString);
Cell1.DoSetCellColor(0, nRows, RGB(255, 0, 0), RGB(255, 255, 255));
Cell1.DoSetCellData (1, nRows, fieldbyname('A_Time').AsString);
Cell1.DoSetCellData (2, nRows, fieldbyname('A_Unit').AsString);
Cell1.DoSetCellData (3, nRows, fieldbyname('A_IP').AsString);
Cell1.DoSetCellData (4, nRows, fieldbyname('A_Level').AsString);
Cell1.DoSetCellData (5, nRows, fieldbyname('A_List').AsString);
Cell1.DoSetCellColor(5, nRows, RGB(255, 0, 0), RGB(255, 255, 255));
Cell1.DoSetCellData (6, nRows, fieldbyname('A_Step').AsString);
Cell1.DoSetCellData (7, nRows, fieldbyname('A_Base').AsString);
Cell1.DoSetCellData (8, nRows, fieldbyname('A_Edition').AsString);
nRows:= nRows+1;
next;
end;
//cell1.Rows:=nrows;
Cell1.DoDrawLine(0,0,8,nRows,0,1,0);//设置表格线
谢谢先