能不能不用数据库呀,像QREPORT那样,有个值来控制是否不接受值了
procedure TFRM31506R.QRPBaseNeedData(Sender: TObject;
var MoreData: Boolean);
begin
with FRM31506.StringGriddo
begin
if i<=RowCount then
QR_0.Caption := Cells[0,i];
QR_1.Caption := Cells[1,i];
QR_2.Caption := Cells[2,i];
QR_3.Caption := Cells[3,i];
QR_4.Caption := Cells[4,i];
QR_5.Caption := Cells[5,i];
QR_6.Caption := Cells[6,i];
inc(i);
MoreData := i<= RowCount;
end;
end;
procedure TFRM31506R.QRPBaseBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
begin
I := 1 ;
end;
end.