请问各位,我用
procedure Tfrm_report.QuickRep2Preview(Sender: TObject);
var
maxpage:integer;
begin
Application.CreateForm(Tfrm_acco_print_disp, frm_acco_print_disp);
QuickRep2.Prepare;
maxpage:=frm_report.QuickRep2.Printer.PageCount;
frm_report.QRLabel11.Caption:= '第' + IntToStr(frm_report.QuickRep2.PageNumber) + '页(共' + IntToStr(maxpage) + '页';
with frm_acco_print_dispdo
//预览窗体
begin
qrpreview1.QRPrinter:=TQRPrinter(sender);
currep:=QuickRep2;
print_int:=4;
show;
end;
end;
怎么会提示QRPrinter not ready! 出错啊??