📄 reportform.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form reportformshow
Caption = "报表浏览"
ClientHeight = 5436
ClientLeft = 60
ClientTop = 396
ClientWidth = 9600
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "reportform.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 5436
ScaleWidth = 9600
StartUpPosition = 2 'CenterScreen
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3480
Top = 1440
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin RichTextLib.RichTextBox RichTextBox1
Height = 4692
Left = 120
TabIndex = 0
Top = 600
Width = 9372
_ExtentX = 16531
_ExtentY = 8276
_Version = 393217
BorderStyle = 0
Enabled = -1 'True
ScrollBars = 3
DisableNoScroll = -1 'True
AutoVerbMenu = -1 'True
TextRTF = $"reportform.frx":0442
End
Begin MSComctlLib.ImageList ImageList1
Left = 3240
Top = 3720
_ExtentX = 995
_ExtentY = 995
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 6
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":0708
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":0B60
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":0FB4
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":140C
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":1864
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "reportform.frx":3570
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 336
Left = 0
TabIndex = 1
Top = 0
Width = 9600
_ExtentX = 16933
_ExtentY = 593
ButtonWidth = 1080
ButtonHeight = 466
Appearance = 1
TextAlignment = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 2
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打开"
Key = "open"
Object.ToolTipText = "打开一个报表文件"
ImageIndex = 3
Style = 5
BeginProperty ButtonMenus {66833FEC-8583-11D1-B16A-00C0F0283628}
NumButtonMenus = 2
BeginProperty ButtonMenu1 {66833FEE-8583-11D1-B16A-00C0F0283628}
Key = "sh"
Text = "以文本浏览"
EndProperty
BeginProperty ButtonMenu2 {66833FEE-8583-11D1-B16A-00C0F0283628}
Key = "sgh"
Text = "以网页浏览"
EndProperty
EndProperty
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印"
Key = "print"
Object.ToolTipText = "打印报表"
ImageIndex = 5
EndProperty
EndProperty
End
End
Attribute VB_Name = "reportformshow"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_LostFocus()
Unload Me
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = ""
End Sub
Private Sub RichTextBox1_Change()
MDIForm1.StatusBar1.Panels(1) = "报表显示"
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1:
CommonDialog1.ShowOpen
CommonDialog1.Filter = "text(*.txt)|*.txt"
RichTextBox1.LoadFile CommonDialog1.filename, rtfText
End Select
End Sub
Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Select Case ButtonMenu.Index
Case 1:
CommonDialog1.ShowOpen
CommonDialog1.Filter = "text(*.txt)|*.txt"
RichTextBox1.LoadFile CommonDialog1.filename, rtfText
'Case 2:
' CommonDialog1.ShowOpen
'CommonDialog1.Filter = "htm(*.htm)|*.html"
'RichTextBox1.LoadFile CommonDialog1.filename, rtfRTF
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -