C# 将属性类化为crystal报告字段

C# 将属性类化为crystal报告字段,c#,vb.net,crystal-reports,C#,Vb.net,Crystal Reports,如何将类属性作为字段放入报表中 我试图创建一个类和属性,但它不会在报表中显示数据。即使我在DataExperts.Net对象中找到该类。是我错过了什么,还是这根本不可能 Public Class Class Public Class Standard Public Property Sample As Integer Public Property Testing1 As Integer Public Property Testing2

如何将类属性作为字段放入报表中

我试图创建一个类和属性,但它不会在报表中显示数据。即使我在DataExperts.Net对象中找到该类。是我错过了什么,还是这根本不可能

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 

试一试会不会比发一篇“我只是想知道…”的帖子更快?请阅读并接受我尝试过的内容,但即使我在.Net对象中找到了我想要的类,它也不会在crystal report中发布任何字段。我试了很多次,但都不起作用,所以我想知道这是否真的有可能,是我遗漏了什么,还是根本不可能。你应该发布代码并询问“如何…”。对你发布的内容的回答是肯定还是否定,对任何人都没有多大帮助。请阅读并采取行动