主题:关于delphi7的报表打印,急,在线等
keyiwangyou
[专家分:80] 发布于 2006-04-04 16:53:00
哪位前辈有delphi7的如何做报表打印的资料,最好附源码,小弟不慎感激!
回复列表 (共2个回复)
沙发
zhangyaootao [专家分:40] 发布于 2006-05-09 12:08:00
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, QRCtrls, QuickRpt, ExtCtrls;
type
TForm2 = class(TForm)
QuickRep1: TQuickRep;
QRBand1: TQRBand;
QRBand2: TQRBand;
QRBand3: TQRBand;
QRBand4: TQRBand;
QRBand5: TQRBand;
QRLabel1: TQRLabel;
QRSysData1: TQRSysData;
QRLabel2: TQRLabel;
QRLabel3: TQRLabel;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel7: TQRLabel;
QRLabel8: TQRLabel;
QRLabel9: TQRLabel;
QRShape1: TQRShape;
QRDBText1: TQRDBText;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRDBText5: TQRDBText;
QRDBText6: TQRDBText;
QRSysData2: TQRSysData;
QRShape2: TQRShape;
QRShape3: TQRShape;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
uses unit1;
end.
在相应的事件中调用
print便可实现打印
板凳
长尾兔 [专家分:3630] 发布于 2006-05-09 14:56:00
qreport里有一大堆控件,够你用的啦
我来回复