📄 scanto.frm
字号:
VERSION 5.00
Begin VB.Form frmScanTo
BorderStyle = 3 'Fixed Dialog
Caption = "扫描选项"
ClientHeight = 3240
ClientLeft = 1395
ClientTop = 1320
ClientWidth = 3105
Icon = "ScanTo.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 3240
ScaleWidth = 3105
ShowInTaskbar = 0 'False
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 375
Left = 1680
TabIndex = 7
Top = 2640
Width = 972
End
Begin VB.CommandButton cmdOK
Caption = "确定"
Default = -1 'True
Height = 375
Left = 480
TabIndex = 6
Top = 2640
Width = 972
End
Begin VB.OptionButton optScanTo
Caption = "传真"
Height = 195
Index = 5
Left = 240
TabIndex = 5
Top = 2040
Width = 2652
End
Begin VB.OptionButton optScanTo
Caption = "使用模板形成文件,不显示"
Height = 315
Index = 4
Left = 240
TabIndex = 4
Top = 1680
Width = 2652
End
Begin VB.OptionButton optScanTo
Caption = "使用模板形成文件并显示"
Height = 315
Index = 3
Left = 240
TabIndex = 3
Top = 1320
Width = 2895
End
Begin VB.OptionButton optScanTo
Caption = "仅文件"
Height = 195
Index = 2
Left = 240
TabIndex = 2
Top = 960
Width = 2652
End
Begin VB.OptionButton optScanTo
Caption = "文件并显示"
Height = 195
Index = 1
Left = 240
TabIndex = 1
Top = 600
Width = 2652
End
Begin VB.OptionButton optScanTo
Caption = "显示"
Height = 195
Index = 0
Left = 240
TabIndex = 0
Top = 240
Width = 2655
End
End
Attribute VB_Name = "frmScanTo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdOK_Click()
'**************************************************************
' PRIVATE SUB cmdOK_Click: Unload the form.
'**************************************************************
'** Integers
Dim intIndex As Integer
On Error GoTo ShowErr
'----------------------------------------------------------
' Take the Index from the array of ScanTo option buttons
' and move it to gintPrintRange. The values are:
' 0 = Display Only
' 1 = Display and File
' 2 = File Only
' 3 = Display and Use File Template
' 4 = Use File Template Only
' 5 = Fax Only
'----------------------------------------------------------
For intIndex = 0 To 5
If optScanTo(intIndex).Value = True Then
frmMain.ImgScan1.ScanTo = intIndex
Exit For
End If
Next intIndex
Unload Me
Exit Sub
ShowErr:
If frmMain.ImgScan1.StatusCode <> 0 Then
MsgBox Err.Description + " - " + Str(Err), 16, "Error"
Else
MsgBox "VB Error " & Err.Description + " - " + Str(Err), 16, "Error"
End If
Resume Next
End Sub
Private Sub cmdCancel_Click()
'**************************************************************
' PRIVATE SUB cmdCancel_Click: Unload the form.
'**************************************************************
Unload Me
End Sub
Private Sub Form_Load()
'**************************************************************
' PRIVATE SUB Form_Load:
'**************************************************************
'** Integers
Dim intIndex As Integer
intIndex = frmMain.ImgScan1.ScanTo
optScanTo(intIndex).Value = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -