📄 frmhpbill.frm
字号:
VERSION 5.00
Begin VB.Form FrmHPBill
BorderStyle = 3 'Fixed Dialog
Caption = "催款单"
ClientHeight = 5355
ClientLeft = 45
ClientTop = 435
ClientWidth = 8100
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5355
ScaleWidth = 8100
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton CmdExit
Caption = "退出"
Height = 375
Left = 6960
TabIndex = 12
Top = 4920
Width = 975
End
Begin VB.CommandButton CmdPrint
Caption = "打印"
Height = 375
Left = 5520
TabIndex = 11
Top = 4920
Width = 975
End
Begin VB.Frame Frame1
BackColor = &H8000000E&
Caption = "订货催款单"
Height = 3855
Left = 120
TabIndex = 1
Top = 840
Width = 7815
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 855
Left = 360
TabIndex = 10
Text = "备注:"
Top = 2400
Width = 7215
End
Begin VB.Label LbTime
AutoSize = -1 'True
BackColor = &H80000009&
Height = 180
Left = 6840
TabIndex = 13
Top = 3480
Width = 90
End
Begin VB.Line Line6
X1 = 360
X2 = 7680
Y1 = 3360
Y2 = 3360
End
Begin VB.Line Line5
X1 = 360
X2 = 7560
Y1 = 2280
Y2 = 2280
End
Begin VB.Line Line4
X1 = 360
X2 = 7560
Y1 = 1680
Y2 = 1680
End
Begin VB.Line Line3
X1 = 360
X2 = 7560
Y1 = 1200
Y2 = 1200
End
Begin VB.Label LbQK
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "欠款总额:"
Height = 180
Left = 5280
TabIndex = 9
Top = 1920
Width = 900
End
Begin VB.Line Line2
X1 = 360
X2 = 7560
Y1 = 720
Y2 = 720
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "产品名称:"
Height = 180
Index = 1
Left = 600
TabIndex = 8
Top = 1440
Width = 900
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "订单批号:"
Height = 180
Index = 2
Left = 3840
TabIndex = 7
Top = 1440
Width = 900
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "数量:"
Height = 180
Index = 3
Left = 960
TabIndex = 6
Top = 1920
Width = 540
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "总金额:"
Height = 180
Index = 4
Left = 2880
TabIndex = 5
Top = 1920
Width = 720
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "订货日期:"
Height = 180
Index = 5
Left = 3840
TabIndex = 4
Top = 960
Width = 900
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "订货客户:"
Height = 180
Index = 6
Left = 600
TabIndex = 3
Top = 960
Width = 900
End
Begin VB.Label LbCus
AutoSize = -1 'True
BackColor = &H80000009&
Caption = "订货单号:"
Height = 180
Index = 0
Left = 600
TabIndex = 2
Top = 480
Width = 900
End
End
Begin VB.Line Line1
BorderWidth = 2
X1 = 0
X2 = 8040
Y1 = 720
Y2 = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "催款单"
BeginProperty Font
Name = "黑体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 3120
TabIndex = 0
Top = 120
Width = 945
End
End
Attribute VB_Name = "FrmHPBill"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdExit_Click()
Unload Me
End Sub
Private Sub CmdPrint_Click()
nleft = lcsleft
ntop = lcstop
Printer.Width = 12000
Printer.Height = 5000
Printer.Orientation = 1
If MsgBox("请检查打印机是否接电与装纸,开始打印吗?", _
vbYesNo + vbQuestion, "提示") = vbYes Then
Printer.Font.Size = 14
Printer.CurrentX = nleft + 5250
Printer.CurrentY = ntop + 500
Printer.Print "催款单"
Printer.CurrentX = nleft + 800
Printer.CurrentY = ntop + 1500
Printer.Print LbCus(0)
Printer.CurrentX = nleft + 4300
Printer.CurrentY = ntop + 1500
Printer.Print LbCus(6)
Printer.CurrentX = nleft + 4300 + 4300
Printer.CurrentY = ntop + 1500
Printer.Print LbCus(5)
Printer.CurrentX = nleft + 800
Printer.CurrentY = ntop + 1500 + 490 * 1
Printer.Print LbCus(1)
Printer.CurrentX = nleft + 4300
Printer.CurrentY = ntop + 1500 + 490 * 1
Printer.Print LbCus(2)
Printer.CurrentX = nleft + 4300 + 4300
Printer.CurrentY = ntop + 1500 + 490 * 1
Printer.Print LbCus(3)
Printer.CurrentX = nleft + 800
Printer.CurrentY = ntop + 1500 + 490 * 1 + 490 * 1
Printer.Print LbCus(4)
Printer.CurrentX = nleft + 4300
Printer.CurrentY = ntop + 1500 + 490 * 1 + 490 * 1
Printer.Print LbQK
Printer.CurrentX = nleft + 800
Printer.CurrentY = ntop + 1500 + 490 * 1 + 490 * 1 + 490
Printer.Print Text1
Printer.CurrentX = nleft + 4300 + 4300
Printer.CurrentY = ntop + 1500 + 490 * 1 + 490 * 1 + 1500
Printer.Print Date
End If
Printer.EndDoc
End Sub
Private Sub Form_Load()
For i = 0 To 6
LbCus(i) = LbCus(i) & FrmHP.Adodc1.Recordset(i)
Next
LbQK = LbQK & FrmHP.Text2 & "元"
LbTime = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -