假设现有报表QrReport1,QrReport2.......
1.做一个自定义的预览窗口.放置一个QrPreview.
2.定义一个变量做为计数器i初始为1,按上一页时不i-1,下一页时i+1.
3.定义一过程:
procedure TPrintForm.QuickRepPreview(Sender: TObject);
begin
QRPreview1.QRPrinter := TQRPrinter(Sender);
end;
4.在Form.Create是设置:
QrReport.OnPreview := QuickRepPreview;
5..case i of
1:QrReport1.preview;
2:QrReport2.preview;
......
end;
关于自定义预览窗口,可参考QuickReport的Demo.