📄 datarep2.dsr
字号:
VERSION 5.00
Begin {78E93846-85FD-11D0-8487-00A0C90DC8A9} DataReport2
Bindings = "DataRep2.dsx":0000
Caption = "DataReport2"
ClientHeight = 11055
ClientLeft = 60
ClientTop = 345
ClientWidth = 15240
StartUpPosition = 3 '窗口缺省
_ExtentX = 26882
_ExtentY = 19500
_Version = 393216
_DesignerVersion= 100684101
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
GridX = 1
GridY = 1
LeftMargin = 1440
RightMargin = 1440
TopMargin = 1440
BottomMargin = 1440
Title = "Customers by Country"
DataMember = "Customers_Grouping"
NumSections = 7
SectionCode0 = 1
BeginProperty Section0 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "ReportHeader"
Object.Height = 720
NumControls = 1
ItemType0 = 3
BeginProperty Item0 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Label2"
Object.Left = 144
Object.Top = 144
Object.Width = 6912
Object.Height = 420
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
BackColor = 14737632
BackStyle = 1
Object.Caption = "Customer grouped by country"
EndProperty
EndProperty
SectionCode1 = 2
BeginProperty Section1 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "PageHeader"
NumControls = 0
EndProperty
SectionCode2 = 3
BeginProperty Section2 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Customers_Grouping_Header"
Object.Height = 690
KeepTogether = -1 'True
NumControls = 2
ItemType0 = 4
BeginProperty Item0 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "txtCountry"
Object.Left = 144
Object.Top = 144
Object.Width = 2592
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BackColor = 14737632
BackStyle = 1
DataField = "Country"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
DataMember = "Customers_Grouping"
EndProperty
ItemType1 = 7
BeginProperty Item1 {1C13A8E5-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "imgFlag"
Object.Left = 4320
Object.Width = 870
Object.Height = 570
SizeMode = 1
EndProperty
EndProperty
SectionCode3 = 4
BeginProperty Section3 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Customers_Detail"
Object.Height = 510
KeepTogether = -1 'True
NumControls = 3
ItemType0 = 4
BeginProperty Item0 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "txtCompanyName"
Object.Left = 144
Object.Top = 144
Object.Width = 2592
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
DataField = "CompanyName"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
DataMember = "Customers"
EndProperty
ItemType1 = 4
BeginProperty Item1 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "txtCity"
Object.Left = 5760
Object.Top = 144
Object.Width = 1440
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
DataField = "City"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
DataMember = "Customers"
EndProperty
ItemType2 = 4
BeginProperty Item2 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "txtPostalCode"
Object.Left = 4320
Object.Top = 144
Object.Width = 1440
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
DataField = "PostalCode"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
DataMember = "Customers"
EndProperty
EndProperty
SectionCode4 = 5
BeginProperty Section4 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Customers_Grouping_Footer"
Object.Height = 300
NumControls = 1
ItemType0 = 5
BeginProperty Item0 {1C13A8E3-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Line1"
Object.Left = 144
Object.Top = 144
Object.Width = 6912
EndProperty
EndProperty
SectionCode5 = 7
BeginProperty Section5 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "PageFooter"
Object.Height = 15
NumControls = 0
EndProperty
SectionCode6 = 8
BeginProperty Section6 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "ReportFooter"
Object.Height = 105
NumControls = 0
EndProperty
End
Attribute VB_Name = "DataReport2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub DataReport_Initialize()
' Create a custom export format
Dim template As String
template = "My Custom Text Report" & vbCrLf & vbCrLf _
& rptTagTitle & vbCrLf & vbCrLf _
& rptTagBody
ExportFormats.Add "Custom1", rptFmtText, "Custom text format", "*.txt", template
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -