📄 frmprint.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form frmPrint
Caption = "Print"
ClientHeight = 6075
ClientLeft = 60
ClientTop = 345
ClientWidth = 6945
LinkTopic = "Form1"
ScaleHeight = 6075
ScaleWidth = 6945
StartUpPosition = 3 'Windows Default
Begin VB.Frame fraMapSize
Caption = "Map Larger than Printer Paper"
Height = 2415
Left = 3840
TabIndex = 24
Top = 2280
Width = 3015
Begin VB.Frame fraTileOptions
BorderStyle = 0 'None
Caption = "Frame1"
Enabled = 0 'False
Height = 975
Left = 120
TabIndex = 28
Top = 600
Width = 2775
Begin VB.TextBox txtTo
Height = 285
Left = 2215
TabIndex = 34
Text = "1"
Top = 465
Width = 375
End
Begin VB.TextBox txtFrom
Height = 285
Left = 1500
TabIndex = 32
Text = "1"
Top = 465
Width = 375
End
Begin VB.OptionButton optPages
Caption = "Pages"
Height = 255
Left = 240
TabIndex = 30
Top = 480
Width = 855
End
Begin VB.OptionButton optTileAll
Caption = "All"
Height = 255
Left = 240
TabIndex = 29
Top = 120
Width = 735
End
Begin VB.Label Label2
Caption = "to:"
Height = 255
Left = 1960
TabIndex = 33
Top = 490
Width = 255
End
Begin VB.Label Label1
Caption = "from:"
Height = 255
Left = 1080
TabIndex = 31
Top = 490
Width = 375
End
End
Begin VB.OptionButton optProceed
Caption = "Proceed with printing, some clipping may occur"
Height = 375
Left = 120
TabIndex = 27
Top = 1920
Width = 2775
End
Begin VB.OptionButton optScale
Caption = "Scale map to fit printer paper"
Height = 255
Left = 120
TabIndex = 26
Top = 1560
Value = -1 'True
Width = 2415
End
Begin VB.OptionButton optTile
Caption = "Tile map to printer paper"
Height = 255
Left = 120
TabIndex = 25
Top = 360
Width = 2175
End
End
Begin VB.CommandButton cmdCancel
Caption = "Cancel"
Height = 375
Left = 5520
TabIndex = 21
Top = 5160
Width = 975
End
Begin VB.CommandButton cmdOK
Caption = "OK"
Height = 375
Left = 4200
TabIndex = 20
Top = 5160
Width = 975
End
Begin VB.Frame fraCopies
Caption = "Copies"
Height = 975
Left = 120
TabIndex = 2
Top = 4800
Width = 3615
Begin MSComCtl2.UpDown UpDown1
Height = 325
Left = 2056
TabIndex = 23
Top = 325
Width = 240
_ExtentX = 423
_ExtentY = 582
_Version = 393216
Value = 1
BuddyControl = "txtCopies"
BuddyDispid = 196623
OrigLeft = 2280
OrigTop = 240
OrigRight = 2520
OrigBottom = 615
Max = 100
Min = 1
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox txtCopies
Height = 325
Left = 1680
TabIndex = 22
Text = "1"
Top = 325
Width = 375
End
Begin VB.Label lblNumberofCopies
Caption = "Number of Copies:"
Height = 255
Left = 240
TabIndex = 4
Top = 360
Width = 1335
End
End
Begin VB.Frame fraPageRange
Caption = "Page Range"
Height = 2415
Left = 120
TabIndex = 1
Top = 2280
Width = 3615
Begin VB.CheckBox chkDisabled
Caption = "Don't output disabled pages"
Height = 195
Left = 240
TabIndex = 35
Top = 2040
Width = 2385
End
Begin VB.TextBox txtPrintPages
Height = 325
Left = 1200
TabIndex = 18
Top = 930
Width = 1695
End
Begin VB.OptionButton optPrintPages
Caption = "Pages:"
Height = 255
Left = 240
TabIndex = 17
Top = 960
Width = 855
End
Begin VB.OptionButton optPrintCurrentPage
Caption = "Current page"
Height = 255
Left = 240
TabIndex = 16
Top = 600
Width = 1215
End
Begin VB.OptionButton optPrintAll
Caption = "All"
Height = 255
Left = 240
TabIndex = 15
Top = 240
Value = -1 'True
Width = 615
End
Begin VB.Label lblPrintPagesDesc
Caption = "Enter page number and/ or page ranges separated by commas. For example, 1,3,5-12"
Height = 435
Left = 240
TabIndex = 19
Top = 1440
Width = 3255
End
End
Begin VB.Frame fraPrinter
Caption = "Printer"
Height = 2055
Left = 120
TabIndex = 0
Top = 120
Width = 6735
Begin MSComDlg.CommonDialog dlgPrint
Left = 4440
Top = 1200
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CheckBox chkPrintToFile
Caption = "Print to File"
Height = 255
Left = 5280
TabIndex = 37
Top = 1560
Width = 1095
End
Begin VB.CommandButton cmdSetup
Caption = "Setup..."
Height = 375
Left = 5280
TabIndex = 3
Top = 360
Width = 1095
End
Begin VB.Label lblComment
Height = 255
Left = 960
TabIndex = 14
Top = 1680
Width = 3495
End
Begin VB.Label lblLocation
Height = 255
Left = 960
TabIndex = 13
Top = 1350
Width = 3495
End
Begin VB.Label lblType
Height = 255
Left = 960
TabIndex = 12
Top = 1020
Width = 3495
End
Begin VB.Label lblStatus
Height = 255
Left = 960
TabIndex = 11
Top = 690
Width = 3495
End
Begin VB.Label lblName
Height = 255
Left = 960
TabIndex = 10
Top = 360
Width = 3495
End
Begin VB.Label lblPrinterComment
Caption = "Comment:"
Height = 255
Left = 120
TabIndex = 9
Top = 1680
Width = 735
End
Begin VB.Label lblPrinterLocation
Caption = "Where:"
Height = 255
Left = 120
TabIndex = 8
Top = 1350
Width = 615
End
Begin VB.Label lblPrinterType
Caption = "Type:"
Height = 255
Left = 120
TabIndex = 7
Top = 1020
Width = 495
End
Begin VB.Label lblPrinterStatus
Caption = "Status:"
Height = 255
Left = 120
TabIndex = 6
Top = 690
Width = 615
End
Begin VB.Label lblPrinterName
Caption = "Name:"
Height = 255
Left = 120
TabIndex = 5
Top = 360
Width = 495
End
End
Begin VB.Label lblPrintStatus
Height = 225
Left = 0
TabIndex = 36
Top = 5880
Width = 6750
End
End
Attribute VB_Name = "frmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Copyright 2006 ESRI
'
' All rights reserved under the copyright laws of the United States
' and applicable international laws, treaties, and conventions.
'
' You may freely redistribute and use this sample code, with or
' without modification, provided you include the original copyright
' notice and use restrictions.
'
' See use restrictions at /arcgis/developerkit/userestrictions.
Private m_pMapPage As IDSMapPage
Private m_pMapSeries As IDSMapSeries
Private m_pMapBook As IDSMapBook
Private m_pApp As IApplication
Private m_pExportFrame As IModelessFrame
Private Sub chkPrintToFile_Click()
20: If Me.chkPrintToFile.value = 1 Then
21: Me.txtCopies.Text = 1
22: Me.fraCopies.Enabled = False
23: Me.txtCopies.Enabled = False
24: Me.UpDown1.Enabled = False
25: Me.lblNumberofCopies.Enabled = False
26: Else
27: fraCopies.Enabled = True
28: Me.txtCopies.Enabled = True
29: Me.UpDown1.Enabled = True
30: Me.lblNumberofCopies.Enabled = True
31: End If
End Sub
Private Sub cmdCancel_Click()
35: m_pExportFrame.Visible = False
36: Unload Me
End Sub
Public Property Let ExportFrame(ByVal pExportFrame As IModelessFrame)
40: Set m_pExportFrame = pExportFrame
End Property
Public Property Get aDSMapPage() As IDSMapPage
44: Set aDSMapPage = m_pMapPage
End Property
Public Property Let aDSMapPage(ByVal pMapPage As IDSMapPage)
48: Set m_pMapPage = pMapPage
End Property
Public Property Get aDSMapSeries() As IDSMapSeries
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -