procedure TrkcxForm.PreBtnClick(Sender: TObject);
begin
PrintRccxForm:=TPrintRccxForm.Create(Application);
PrintRccxForm.QuickRep.Prepare;
try
nPageCount:=PrintRccxForm.QuickRep.QRPrinter.PageCount;
finally
PrintRccxForm.QuickRep.QRPrinter.Free;
end;
PrintRccxForm.QuickRep.QRPrinter := nil;
PrintRccxForm.QuickRep.Preview;
end;