📄 formrepset.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form FormRepSet
BorderStyle = 3 'Fixed Dialog
Caption = "报表打印定义"
ClientHeight = 6405
ClientLeft = 45
ClientTop = 330
ClientWidth = 9480
Icon = "FormRepSet.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6405
ScaleWidth = 9480
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 2220
Left = 3480
ScaleHeight = 2160
ScaleWidth = 5805
TabIndex = 24
Top = 3690
Width = 5865
Begin VB.Image Image1
Height = 2070
Left = 2280
Picture = "FormRepSet.frx":0442
Top = 45
Width = 1515
End
End
Begin VB.CommandButton Command2
Caption = "取消(&C)"
Height = 360
Left = 8190
TabIndex = 3
Top = 6000
Width = 1140
End
Begin VB.CommandButton Command1
Caption = "确定(&O)"
Height = 360
Left = 6240
TabIndex = 2
Top = 6015
Width = 1275
End
Begin MSComctlLib.ImageList ImageList1
Left = -15
Top = 5820
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FormRepSet.frx":A864
Key = ""
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Caption = "报表名称列表"
Height = 6165
Left = 75
TabIndex = 0
Top = 90
Width = 3210
Begin MSComctlLib.ListView ListView1
Height = 5850
Left = 105
TabIndex = 1
Top = 210
Width = 3000
_ExtentX = 5292
_ExtentY = 10319
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = 12615808
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 0
End
End
Begin TabDlg.SSTab SSTab1
Height = 2895
Left = 3450
TabIndex = 4
Top = 210
Width = 5895
_ExtentX = 10398
_ExtentY = 5106
_Version = 393216
Style = 1
TabsPerRow = 4
TabHeight = 520
TabCaption(0) = "标题"
TabPicture(0) = "FormRepSet.frx":B540
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "lbl_Title"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).Control(1)= "Label1"
Tab(0).Control(1).Enabled= 0 'False
Tab(0).Control(2)= "Command3"
Tab(0).Control(2).Enabled= 0 'False
Tab(0).Control(3)= "txt_Title"
Tab(0).Control(3).Enabled= 0 'False
Tab(0).ControlCount= 4
TabCaption(1) = "表格"
TabPicture(1) = "FormRepSet.frx":B55C
Tab(1).ControlEnabled= 0 'False
Tab(1).Control(0)= "Command4"
Tab(1).Control(1)= "Command5"
Tab(1).Control(2)= "Option1(0)"
Tab(1).Control(3)= "Option1(1)"
Tab(1).Control(4)= "Option1(2)"
Tab(1).Control(5)= "lbl_Head"
Tab(1).Control(6)= "lbl_Body"
Tab(1).Control(7)= "Label2"
Tab(1).ControlCount= 8
TabCaption(2) = "汇总"
TabPicture(2) = "FormRepSet.frx":B578
Tab(2).ControlEnabled= 0 'False
Tab(2).Control(0)= "chk_PrnDate"
Tab(2).Control(1)= "chk_Sum"
Tab(2).Control(2)= "chk_UnderLine"
Tab(2).Control(3)= "chk_Center"
Tab(2).Control(4)= "chk_Bold"
Tab(2).Control(5)= "txt_Foot"
Tab(2).Control(6)= "Label3"
Tab(2).ControlCount= 7
Begin VB.TextBox txt_Title
Height = 375
Left = 1320
TabIndex = 17
Text = "Text1"
Top = 960
Width = 4215
End
Begin VB.CommandButton Command3
Caption = "字体设置"
Height = 375
Left = 4320
TabIndex = 16
Top = 1440
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "字体设置"
Height = 375
Left = -74520
TabIndex = 15
Top = 1080
Width = 1215
End
Begin VB.CommandButton Command5
Caption = "字体设置"
Height = 375
Left = -71400
TabIndex = 14
Top = 1080
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "居左"
Height = 255
Index = 0
Left = -72840
TabIndex = 13
Top = 600
Width = 975
End
Begin VB.OptionButton Option1
Caption = "居中"
Height = 255
Index = 1
Left = -71880
TabIndex = 12
Top = 600
Width = 975
End
Begin VB.OptionButton Option1
Caption = "居右"
Height = 255
Index = 2
Left = -70920
TabIndex = 11
Top = 600
Width = 975
End
Begin VB.CheckBox chk_PrnDate
Caption = "打印当前日期"
Height = 375
Left = -74520
TabIndex = 10
Top = 600
Width = 1695
End
Begin VB.CheckBox chk_Sum
Caption = "打印表格总汇总"
Height = 375
Left = -74520
TabIndex = 9
Top = 1080
Width = 1695
End
Begin VB.CheckBox chk_UnderLine
Caption = "合计栏加下划线"
Height = 375
Left = -74520
TabIndex = 8
Top = 1560
Width = 1935
End
Begin VB.CheckBox chk_Center
Caption = "合计栏居中"
Height = 375
Left = -74520
TabIndex = 7
Top = 2040
Width = 1935
End
Begin VB.CheckBox chk_Bold
Caption = "合计栏加重"
Height = 375
Left = -71520
TabIndex = 6
Top = 1560
Width = 1935
End
Begin VB.TextBox txt_Foot
Height = 375
Left = -70440
TabIndex = 5
Text = "Text1"
Top = 2160
Width = 855
End
Begin VB.Label Label1
Caption = "打印标题"
Height = 255
Left = 240
TabIndex = 23
Top = 1080
Width = 915
End
Begin VB.Label lbl_Title
Alignment = 2 'Center
Caption = "打印标题"
Height = 255
Left = 240
TabIndex = 22
Top = 1980
Width = 5415
End
Begin VB.Label lbl_Head
Caption = "打印表头"
Height = 375
Left = -73920
TabIndex = 21
Top = 1680
Width = 735
End
Begin VB.Label lbl_Body
Caption = "表格内容"
Height = 375
Left = -70920
TabIndex = 20
Top = 1680
Width = 1095
End
Begin VB.Label Label2
Caption = "表格打印位置: "
Height = 375
Left = -74520
TabIndex = 19
Top = 600
Width = 1455
End
Begin VB.Label Label3
Caption = "页面调整:"
Height = 255
Left = -71520
TabIndex = 18
Top = 2160
Width = 1095
End
End
Begin VB.Label Label4
Caption = "报表效果预览"
Height = 210
Left = 5550
TabIndex = 25
Top = 3390
Width = 1125
End
Begin VB.Line Line2
BorderColor = &H80000005&
X1 = 3480
X2 = 9210
Y1 = 3480
Y2 = 3480
End
Begin VB.Line Line1
BorderColor = &H80000003&
X1 = 3495
X2 = 9195
Y1 = 3450
Y2 = 3450
End
End
Attribute VB_Name = "FormRepSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
Dim Li As ListItem
Set Li = ListView1.ListItems.Add(, , "电费清单", 1)
Set Li = ListView1.ListItems.Add(, , "催费清单", 1)
Set Li = ListView1.ListItems.Add(, , "汇总报表", 1)
Set Li = ListView1.ListItems.Add(, , "汇总月报表", 1)
Set Li = ListView1.ListItems.Add(, , "线损报表", 1)
'Set Li = ListView1.ListItems.Add(, , "汇总报表", 1)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -