frmprint.frm
来自「使用VB和ArcObject结合的程序」· FRM 代码 · 共 800 行 · 第 1/2 页
FRM
800 行
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 1995-2004 ESRI
' All rights reserved under the copyright laws of the United States.
' You may freely redistribute and use this sample code, with or without modification.
' Disclaimer: THE SAMPLE CODE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
' WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
' FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESRI OR
' CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
' OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
' SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
' INTERRUPTION) SUSTAINED BY YOU OR A THIRD PARTY, HOWEVER CAUSED AND ON ANY
' THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ARISING IN ANY
' WAY OUT OF THE USE OF THIS SAMPLE CODE, EVEN IF ADVISED OF THE POSSIBILITY OF
' SUCH DAMAGE.
' For additional information contact: Environmental Systems Research Institute, Inc.
' Attn: Contracts Dept.
' 380 New York Street
' Redlands, California, U.S.A. 92373
' Email: contracts@esri.com
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()
8: If Me.chkPrintToFile.Value = 1 Then
9: Me.txtCopies.Text = 1
10: Me.fraCopies.Enabled = False
11: Me.txtCopies.Enabled = False
12: Me.UpDown1.Enabled = False
13: Me.lblNumberofCopies.Enabled = False
14: Else
15: fraCopies.Enabled = True
16: Me.txtCopies.Enabled = True
17: Me.UpDown1.Enabled = True
18: Me.lblNumberofCopies.Enabled = True
19: End If
End Sub
Private Sub cmdCancel_Click()
23: m_pExportFrame.Visible = False
24: Unload Me
End Sub
Public Property Let ExportFrame(ByVal pExportFrame As IModelessFrame)
28: Set m_pExportFrame = pExportFrame
End Property
Public Property Get aDSMapPage() As IDSMapPage
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?