📄 printform.pas
字号:
unit printform;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, QRCtrls, DB, ADODB, jpeg, QuickRpt, ExtCtrls;
type
TPtnFrm = class(TForm)
QuickRep1: TQuickRep;
QRBand1: TQRBand;
QRLabel1: TQRLabel;
QRImage1: TQRImage;
QRBand2: TQRBand;
QRShape1: TQRShape;
QRShape2: TQRShape;
QRShape3: TQRShape;
QRLabel3: TQRLabel;
QRShape4: TQRShape;
QRShape5: TQRShape;
QRShape7: TQRShape;
ADOConnection1: TADOConnection;
ADOQuery1: TADOQuery;
QRBand3: TQRBand;
QRDBText1: TQRDBText;
QRLabel2: TQRLabel;
QRLabel4: TQRLabel;
QRShape8: TQRShape;
QRShape9: TQRShape;
QRShape10: TQRShape;
QRShape11: TQRShape;
QRDBText2: TQRDBText;
QRShape12: TQRShape;
QRShape13: TQRShape;
QRShape14: TQRShape;
QRShape15: TQRShape;
QRShape16: TQRShape;
QRShape17: TQRShape;
QRLabel6: TQRLabel;
QRShape18: TQRShape;
QRShape19: TQRShape;
QRShape20: TQRShape;
QRShape21: TQRShape;
QRShape22: TQRShape;
QRShape23: TQRShape;
QRLabel8: TQRLabel;
QRLabel9: TQRLabel;
QRLabel10: TQRLabel;
QRLabel5: TQRLabel;
QRBand4: TQRBand;
QRShape24: TQRShape;
QRShape25: TQRShape;
QRShape27: TQRShape;
QRShape28: TQRShape;
QRShape29: TQRShape;
QRLabel7: TQRLabel;
QRLabel11: TQRLabel;
QRLabel12: TQRLabel;
QRLabel13: TQRLabel;
QRShape30: TQRShape;
QRShape32: TQRShape;
QRShape33: TQRShape;
QRShape34: TQRShape;
QRShape35: TQRShape;
QRShape37: TQRShape;
QRShape38: TQRShape;
QRShape31: TQRShape;
QRShape40: TQRShape;
QRLabel14: TQRLabel;
QRLabel15: TQRLabel;
QRLabel16: TQRLabel;
QRLabel17: TQRLabel;
QRLabel18: TQRLabel;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRLabel19: TQRLabel;
QRShape42: TQRShape;
ADOQuery2: TADOQuery;
QRLabel20: TQRLabel;
QRLabel21: TQRLabel;
QRLabel22: TQRLabel;
QRShape6: TQRShape;
QRShape26: TQRShape;
QRRichText1: TQRRichText;
procedure QuickRep1AfterPreview(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PtnFrm: TPtnFrm;
implementation
{$R *.dfm}
procedure TPtnFrm.QuickRep1AfterPreview(Sender: TObject);
begin
ADOQuery1.close;
ADOQuery1.sql.Clear;
ADOQuery1.sql.Add('select * from outprint');
ADOQuery1.Open;
if ADOQuery1.RecordCount>0 then
begin
ADOQuery2.close;
ADOQuery2.sql.Clear;
ADOQuery2.sql.Add('delete * from outprint');
ADOQuery2.ExecSQL;
QuickRep1.Preview;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -