?? frm報表選擇.frm
字號:
VERSION 5.00
Begin VB.Form frm報表選擇
Caption = "報表選擇及打印"
ClientHeight = 3225
ClientLeft = 60
ClientTop = 345
ClientWidth = 6855
LinkTopic = "Form1"
ScaleHeight = 3225
ScaleWidth = 6855
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 = 5430
TabIndex = 5
Top = 1140
Width = 1335
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 = 5430
TabIndex = 4
Top = 600
Width = 1335
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 = 4980
TabIndex = 3
Top = 90
Width = 1785
End
Begin VB.Frame Frame2
Caption = "選擇表格類型:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1905
Left = 90
TabIndex = 2
Top = 1230
Width = 5205
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1380
Left = 120
Style = 1 'Simple Combo
TabIndex = 7
Text = "Combo1"
Top = 300
Width = 4965
End
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 = 90
TabIndex = 0
Top = 150
Width = 2985
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 = 1590
TabIndex = 6
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 VB.PictureBox cd1
Height = 480
Left = 5580
ScaleHeight = 420
ScaleWidth = 1140
TabIndex = 8
Top = 1860
Width = 1200
End
Begin VB.PictureBox cr1
Height = 480
Left = 6300
ScaleHeight = 420
ScaleWidth = 1140
TabIndex = 9
Top = 1890
Width = 1200
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
Public Sub gztxs()
Combo1.Clear
Combo1.AddItem "在職條[在職工資條]"
Combo1.AddItem "退休條[退休工資條]"
Combo1.AddItem "離休條[離休工資條]"
End Sub
Public Sub gzbxs()
Combo1.Clear
Combo1.AddItem "在職表[在職工資表]"
Combo1.AddItem "退休表[退休工資表]"
Combo1.AddItem "離休表[離休工資表]"
End Sub
Private Sub Combo1_Click()
pbwjm = Left(Trim(Combo1.Text), 3) & ".rpt"
End Sub
'Private Sub Command1_Click()
'cd1.ShowPrinter
'End Sub
'Private Sub Command2_Click()
'CR1.DataFiles(0) = xtlj & "dwxx.mdb"
' 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
Frame2.Visible = True
pbwjm = "1010條.rpt"
Call gztxs
End Sub
Private Sub Option1_Click(Index As Integer)
If Index = 0 Then Call gztxs
If Index = 1 Then Call gzbxs
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -