Download ActiveReports 7 User Guide
Transcript
ActiveReports 7 User Guide
595
System.Drawing
System.Windows.Forms
5.
Right-click
the
CustomDataProvider
project
and
select
Add,
then
New
Folder,
and
name
the
folder
CSVDataProvider.
6.
Right-click
the
folder
and
select
Add,
then
Class,
then
name
the
class
CsvColumn
and
add
code
like
the
following
to
replace
the
default
stub
in
the
class.
Visual
Basic
code
Visual
Basic
code.
Paste
it
to
replace
the
default
stub
in
the
class.
Namespace CSVDataProvider
' Represents information about fields in the data source.
Friend Structure CsvColumn
Private ReadOnly _fieldName As String
Private ReadOnly _dataType As Type
' Creates a new instance of the CsvColumn class.
' The fieldName parameter is the name of the field represented by
this instance of the CsvColumn.
' The dataType parameter is the Type of the field represented by
this instance of the CsvColumn.
Public Sub New(fieldName As String, dataType As Type)
If fieldName Is Nothing Then
Throw New ArgumentNullException("fieldName")
End If
If dataType Is Nothing Then
Throw New ArgumentNullException("dataType")
End If
_fieldName = fieldName
_dataType = dataType
End Sub
' Gets the name of the field represented by this instance of the
CsvColumn.
Public ReadOnly Property FieldName() As String
Get
Return _fieldName
End Get
End Property
' Gets the the Type of the field represented by this instance of
the CsvColumn.
Public ReadOnly Property DataType() As Type
Get
Return _dataType
End Get
End Property
' Returns a String that represents this instance of the CsvColumn.
Public Overrides Function ToString() As String
Return [String].Concat(New String() {FieldName, "(",
DataType.ToString(), ")"})
End Function
©2013 ComponentOne, a division of GrapeCity. All Rights Reserved.
Related documents
HP Reliable Transaction Router User's Manual
Medion Car Audio Instruction manual
Compaq Reliable Transaction Router User's Manual
ActiveReports 6 User Guide
User's Guide of the Unique Registration Facility (URF) and
CMSi Admin Manual - Conservation Management System
Quick Reference Guide
Contract Management Tracking Software
CuteReport User Manual - The UK Mirror Service
DWO-Manager
取扱説明書
取扱説明書