📄 frmpntgl.frm
字号:
VERSION 5.00
Object = "{CE671F01-259E-40DA-92FE-95803E2ECBB5}#1.0#0"; "SMARTXPBUTTON.OCX"
Begin VB.Form FrmPntGl
BackColor = &H00E0E0E0&
BorderStyle = 3 'Fixed Dialog
Caption = "选择打印到..."
ClientHeight = 3285
ClientLeft = 45
ClientTop = 330
ClientWidth = 5970
Icon = "FrmPntGl.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3285
ScaleWidth = 5970
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
BackColor = &H00E0E0E0&
Caption = "打印方式:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2775
Left = 480
TabIndex = 3
Top = 240
Width = 2775
Begin VB.OptionButton Option1
BackColor = &H00E0E0E0&
Caption = "全部打印"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 4
Left = 360
TabIndex = 8
Top = 2100
Width = 1935
End
Begin VB.OptionButton Option1
BackColor = &H00E0E0E0&
Caption = "按选定数据打印"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 3
Left = 360
TabIndex = 7
Top = 1695
Width = 1935
End
Begin VB.OptionButton Option1
BackColor = &H00E0E0E0&
Caption = "按列表打印"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 2
Left = 360
TabIndex = 6
Top = 1290
Width = 1935
End
Begin VB.OptionButton Option1
BackColor = &H00E0E0E0&
Caption = "打印未付款名单"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 1
Left = 360
TabIndex = 5
Top = 885
Width = 1935
End
Begin VB.OptionButton Option1
BackColor = &H00E0E0E0&
Caption = "打印已付款名单"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 0
Left = 360
TabIndex = 4
Top = 480
Width = 1935
End
End
Begin SmartXPButton.XpButton Command1
Height = 555
Index = 0
Left = 3675
TabIndex = 0
Top = 255
Width = 1965
_ExtentX = 3466
_ExtentY = 979
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "打印到XLS(&E)"
PictureSmoothBackColor= 14938848
ButtonPicture = "FrmPntGl.frx":030A
PicAreaFixWidth = 40
End
Begin SmartXPButton.XpButton Command1
Height = 555
Index = 1
Left = 3675
TabIndex = 1
Top = 821
Width = 1965
_ExtentX = 3466
_ExtentY = 979
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "普通打印(&P)"
PictureSmoothBackColor= 14938848
ButtonPicture = "FrmPntGl.frx":0624
PicAreaFixWidth = 40
End
Begin SmartXPButton.XpButton Command1
Height = 555
Index = 2
Left = 3675
TabIndex = 2
Top = 2520
Width = 1965
_ExtentX = 3466
_ExtentY = 979
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "关闭窗口(&X)"
PictureSmoothBackColor= 14938848
ButtonPicture = "FrmPntGl.frx":093E
PicAreaFixWidth = 40
End
Begin SmartXPButton.XpButton Command1
Height = 555
Index = 3
Left = 3675
TabIndex = 9
Top = 1387
Width = 1965
_ExtentX = 3466
_ExtentY = 979
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "单用户打印(&D)"
PictureSmoothBackColor= 14938848
ButtonPicture = "FrmPntGl.frx":0C58
PicAreaFixWidth = 40
End
Begin SmartXPButton.XpButton Command1
Height = 555
Index = 4
Left = 3675
TabIndex = 10
Top = 1953
Width = 1965
_ExtentX = 3466
_ExtentY = 979
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "银行报表(&H)"
PictureSmoothBackColor= 14938848
ButtonPicture = "FrmPntGl.frx":0F72
PicAreaFixWidth = 40
End
End
Attribute VB_Name = "FrmPntGl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0 '打印到:Excel
If Not Option1(0).Value And Not Option1(1).Value And Not Option1(2).Value _
And Not Option1(3).Value And Not Option1(4).Value Then
MsgBox "没有选择打印方式,不能打印...", vbOKOnly + vbExclamation, "打印方式出错!"
Exit Sub
End If
MdlMain.PntType.TypeOfPnt = IIf(Option1(0).Value, 0, _
IIf(Option1(1).Value, 1, _
IIf(Option1(2).Value, 2, _
IIf(Option1(3).Value, 3, _
IIf(Option1(4).Value, 4, -1)))))
MdlMain.PntType.PntOrNot = True
MdlMain.PntType.XlsOrNot = True
MdlMain.PntType.OneOrMore = False
MdlMain.PntType.BankOrNot = False
Unload Me
Case 1 '普通打印
If Not Option1(0).Value And Not Option1(1).Value And Not Option1(2).Value _
And Not Option1(3).Value And Not Option1(4).Value Then
MsgBox "没有选择打印方式,不能打印...", vbOKOnly + vbExclamation, "打印方式出错!"
Exit Sub
End If
MdlMain.PntType.TypeOfPnt = IIf(Option1(0).Value, 0, _
IIf(Option1(1).Value, 1, _
IIf(Option1(2).Value, 2, _
IIf(Option1(3).Value, 3, _
IIf(Option1(4).Value, 4, -1)))))
MdlMain.PntType.PntOrNot = True
MdlMain.PntType.XlsOrNot = False
MdlMain.PntType.OneOrMore = False
MdlMain.PntType.BankOrNot = False
Unload Me
Case 3 '单用户打印
If Not Option1(0).Value And Not Option1(1).Value And Not Option1(2).Value _
And Not Option1(3).Value And Not Option1(4).Value Then
MsgBox "没有选择打印方式,不能打印...", vbOKOnly + vbExclamation, "打印方式出错!"
Exit Sub
End If
MdlMain.PntType.TypeOfPnt = IIf(Option1(0).Value, 0, _
IIf(Option1(1).Value, 1, _
IIf(Option1(2).Value, 2, _
IIf(Option1(3).Value, 3, _
IIf(Option1(4).Value, 4, -1)))))
MdlMain.PntType.PntOrNot = True
MdlMain.PntType.XlsOrNot = False
MdlMain.PntType.OneOrMore = True
MdlMain.PntType.BankOrNot = False
Unload Me
Case 4 '银行报表
If Not Option1(0).Value And Not Option1(1).Value And Not Option1(2).Value _
And Not Option1(3).Value And Not Option1(4).Value Then
MsgBox "没有选择打印方式,不能打印...", vbOKOnly + vbExclamation, "打印方式出错!"
Exit Sub
End If
MdlMain.PntType.TypeOfPnt = IIf(Option1(0).Value, 0, _
IIf(Option1(1).Value, 1, _
IIf(Option1(2).Value, 2, _
IIf(Option1(3).Value, 3, _
IIf(Option1(4).Value, 4, -1)))))
MdlMain.PntType.PntOrNot = True
MdlMain.PntType.XlsOrNot = False
MdlMain.PntType.OneOrMore = False
MdlMain.PntType.BankOrNot = True
Unload Me
Case 2
Unload Me
End Select
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then Unload Me
End Sub
Private Sub Form_Load()
Me.KeyPreview = True
Option1(3).Value = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -