📄 frm报表选择.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{00025600-0000-0000-C000-000000000046}#4.6#0"; "CRYSTL32.OCX"
Begin VB.Form frm报表选择
Caption = "报表选择及打印"
ClientHeight = 1800
ClientLeft = 60
ClientTop = 345
ClientWidth = 4740
LinkTopic = "Form1"
ScaleHeight = 1800
ScaleWidth = 4740
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command3
Caption = "退出(&Q)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3458
TabIndex = 4
Top = 1320
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "打印(&P)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 2018
TabIndex = 3
Top = 1320
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "打印机设置(&S)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 98
TabIndex = 2
Top = 1320
Width = 1785
End
Begin VB.Frame Frame1
Caption = "选择表类型:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1035
Left = 68
TabIndex = 0
Top = 150
Width = 4545
Begin VB.OptionButton Option1
Caption = "工资表"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 3270
TabIndex = 5
Top = 450
Width = 1125
End
Begin VB.OptionButton Option1
Caption = "工资条"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 270
TabIndex = 1
Top = 450
Value = -1 'True
Width = 1095
End
End
Begin MSComDlg.CommonDialog cd1
Left = 1800
Top = 0
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin Crystal.CrystalReport cr1
Left = 2640
Top = 0
_ExtentX = 741
_ExtentY = 741
_Version = 262150
WindowControlBox= -1 'True
WindowMaxButton = -1 'True
WindowMinButton = -1 'True
End
End
Attribute VB_Name = "frm报表选择"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim pbwjm As String
Private Sub Command1_Click()
cd1.ShowPrinter
End Sub
Private Sub Command2_Click()
cr1.DataFiles(0) = xtlj & "dwxx.mdb"
If Option1(0).Value = True Then pbwjm = "工资条.rpt"
If Option1(1).Value = True Then pbwjm = "工资表.rpt"
pbwjm = xtlj & "rpt\" & pbwjm
cr1.ReportFileName = pbwjm
cr1.PrintReport
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Option1(0).Value = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -