报表代码如下
unit RepAll;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
QuickRpt, ExtCtrls;
type
TFrmRepAll = class(TForm)
QuickRep1: TQuickRep;
QRCompositeReport1: TQRCompositeReport;
procedure QRCompositeReport1AddReports(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmRepAll: TFrmRepAll;
implementation
uses FrmQRepPart1, FrmQRepPart2, FrmQrepPart3,FrmQRPart4;
{$R *.DFM}
procedure TFrmRepAll.QRCompositeReport1AddReports(Sender: TObject);
begin
with QRCompositeReport1do
begin
reports.Add(FrmQRPart1.qrPart1);
reports.Add(FrmRepPart2.qrPart2);
reports.Add(FrmQRPart3.qrPart3);
reports.Add(FrmRepPart4.qrPart4);
end;
end;
end.
在程序的其他地方调用 FrmRepAll.QRCompositeReport1.Preview;
就是要去掉这个预览的窗口的极小化按钮。
报表的几个部分都是用的TQuickRep组件。
谢谢各位,很急的!