Hello,
I am tryng to add a Class as a Data Source in the VB2010 ReportViewer Report Data. I have created a Class named ProjInfo.vb and I have assigned values in the ReporViewer form to fields in the Class. However, the Class does not appear in the list of available Data Sources or Data Sets, when I try to Add the Data Source to the Reprt Viewer. The code for the Class is shown below. Can someone tell me how to fix the Class so I can use it as a Data Source with the ReprtViewer?
Thank you,
Dan
PublicClassProjInfo
Public PrjName AsString
Public PrjAddress AsString
Public PrjCSZ AsString
Public JbNo AsString
Public ClcNo AsString
Public ClcDate AsString
Public PrpName AsString
Public PrpCoName AsString
Public PrpAddress AsString
Public PrpCSZ AsString
Public PrpPhone AsString
Public PrpFax AsString
Public PrpEmail AsString
Public PrpURL AsString
PublicProperty ProjAddressAsString
Get
Return PrjAddress
EndGet
Set(value AsString)
PrjAddress = value
EndSet
EndProperty
PublicProperty ProjCSZAsString
Get
Return PrjCSZ
EndGet
Set(value AsString)
PrjCSZ = value
EndSet
EndProperty
PublicProperty JobNoAsString
Get
Return JbNo
EndGet
Set(value AsString)
JbNo = value
EndSet
EndProperty
PublicProperty CalcNoAsString
Get
Return ClcNo
EndGet
Set(value AsString)
ClcNo = value
EndSet
EndProperty
PublicProperty CalcDateAsString
Get
Return ClcDate
EndGet
Set(value AsString)
ClcDate = value
EndSet
EndProperty
PublicProperty PrepNameAsString
Get
Return PrpName
EndGet
Set(value AsString)
PrpName = value
EndSet
EndProperty
PublicProperty PrepCoNameAsString
Get
Return PrpCoName
EndGet
Set(value AsString)
PrpCoName = value
EndSet
EndProperty
PublicProperty PrepAddressAsString
Get
Return PrpAddress
EndGet
Set(value AsString)
PrpAddress = value
EndSet
EndProperty
PublicProperty PrepCSZAsString
Get
Return PrpCSZ
EndGet
Set(value AsString)
PrpCSZ = value
EndSet
EndProperty
PublicProperty PrepPhoneAsString
Get
Return PrpPhone
EndGet
Set(value AsString)
PrpPhone = value
EndSet
EndProperty
PublicProperty PrepFaxAsString
Get
Return PrpFax
EndGet
Set(value AsString)
PrpFax = value
EndSet
EndProperty
PublicProperty PrepEmailAsString
Get
Return PrpEmail
EndGet
Set(value AsString)
PrpEmail = value
EndSet
EndProperty
PublicProperty PrepURLAsString
Get
Return prpurl
EndGet
Set(value AsString)
prpurl = value
EndSet
EndProperty
PublicProperty ProjNameAsInteger
Get
Return PrjName
EndGet
Set(value AsInteger)
PrjName = value
EndSet
EndProperty
EndClass
Dan