还是不行
procedure TfrmMain.mnuDY1Click(Sender: TObject);
begin
if not assigned(frmReport_1) then
begin
frmReport_1 := TfrmReport_1.Create(self);
try
frmReport_1.Rep.Prepare;
frmReport_1.Rep.Preview;
finally
frmReport_1.Free;
frmReport_1 := nil;
end;
end;
end;
我把lblPage.Caption := '第 '+IntToStr(rep.PageNumber)+' 页 共 '+IntToStr(rep.QRPrinter.PageCount)+' 页';
写在OnStartPage里面,是不是不对?