类属性进入晶体报告字段

时间:2017-06-14 17:00:14

标签: c# vb.net crystal-reports

如何将类属性作为字段添加到报表中?

我尝试创建一个类和属性,但它不会在报告中显示数据。即使我在DataExperts .Net Object中找到了这个类。我错过了什么,或者这根本不可能做到?

Public Class Class

    Public Class Standard
        Public Property Sample As Integer
        Public Property Testing1 As Integer
        Public Property Testing2 As Integer
        Public Property Testing3 As Integer
        Public Property Testing4 As Integer
    End Class
End Class

然后我在报告中使用属性作为数据库字段:

Sample 
Testing1
Testing2
Testing3
Testing4 

0 个答案:

没有答案