printunit.pas
来自「《delphi 7.0_8.0课程设计与系统开发案例》随书代码」· PAS 代码 · 共 67 行
PAS
67 行
unit PrintUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, QuickRpt, DB, DBTables, QRCtrls;
type
TForm6 = class(TForm)
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
QuickRep1: TQuickRep;
QRBand1: TQRBand;
QRLabel1: TQRLabel;
QRBand2: TQRBand;
QRLabel2: TQRLabel;
QRBand3: TQRBand;
QRDBText1: TQRDBText;
Table1: TTable;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRDBText5: TQRDBText;
QRDBText6: TQRDBText;
QRDBText7: TQRDBText;
QRDBText8: TQRDBText;
QRDBText9: TQRDBText;
QRLabel3: TQRLabel;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel7: TQRLabel;
QRLabel8: TQRLabel;
QRLabel9: TQRLabel;
QRLabel10: TQRLabel;
procedure RadioButton1Click(Sender: TObject);
procedure RadioButton2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form6: TForm6;
implementation
uses TYCXUnit, QRMDFORMUnit;
//uses Unit1;
{$R *.dfm}
procedure TForm6.RadioButton1Click(Sender: TObject);
begin
QRMDForm.QuickRep1.preview;
end;
procedure TForm6.RadioButton2Click(Sender: TObject);
begin
QuickRep1.preview;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?