procedure TFrmQry.BtnrptClick(Sender: TObject);
VAR
pagecount:integer;
begin
screen.Cursor:=crhourglass;
TRY
if frmrpt=nil then
frmrpt:=Tfrmrpt.Create(application);
FRMRPT.QuickRep1.Prepare;
pagecount:=frmRpt.QuickRep1.Printer.PageCount;
frmRpt.QRLabel9.Caption:='页(共'+inttostr(pagecount)+'页)';
frmRpt.QuickRep1.CleanupInstance ;
finally
screen.Cursor:=crdefault;
end;
frmRpt.QuickRep1.Preview;
end;