?? frmprint.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmprint
Caption = "獲取當前打印機紙張類型"
ClientHeight = 1770
ClientLeft = 60
ClientTop = 345
ClientWidth = 5130
LinkTopic = "Form1"
ScaleHeight = 1770
ScaleWidth = 5130
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text2
Height = 375
Left = 4050
TabIndex = 4
Top = 840
Visible = 0 'False
Width = 1005
End
Begin MSComDlg.CommonDialog co
Left = 3360
Top = 930
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 345
Left = 4020
TabIndex = 3
Top = 1110
Visible = 0 'False
Width = 945
End
Begin VB.TextBox Text1
Height = 315
Left = 2490
TabIndex = 2
Top = 330
Width = 1125
End
Begin VB.CommandButton Command1
Caption = "提取數據"
Height = 375
Left = 1650
TabIndex = 1
Top = 1110
Width = 1065
End
Begin VB.Label Label1
Caption = "當前打印機紙張類型:"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 390
TabIndex = 0
Top = 330
Width = 2115
End
End
Attribute VB_Name = "frmprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Text = CStr(Printer.PaperSize)
End Sub
Private Sub Command2_Click()
' co.ShowPrinter
If Trim(Text2.Text) <> "" Then
Printer.PaperSize = Val(vFldVal(Trim(Text2.Text)))
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -