将列表发送到Crystal Report [英] Sending a List to Crystal Report

查看:88
本文介绍了将列表发送到Crystal Report的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将特殊对象列表发送到Crystal Report作为数据源?!


示例类在这里:

How can i send a list of special Objects to Crystal Report as source of data?!


sample class is here:

<br />
    public class User<br />
    {<br />
        int userID;<br />
        string userName;<br />
<br />
        public int UserID<br />
        {<br />
            get { return userID; }<br />
            set { userID = value; }<br />
        }<br />
<br />
        public string UserName<br />
        {<br />
            get { return userName; }<br />
            set { userName = value; }<br />
        }<br />
    }<br />



我想从上面的课程中列出一个清单,并将其发送到Crystal Report




i want to make a list from class above and send it to crystal report


<br />
List<User> SampleList=new List<User>();<br />



如何将SampleList发送到Crystal Report? :doh:
我做了很多方法来做到这一点,但是没有一种方法可以用于所有不同的方式!!



how can i send SampleList to Crystal Report?! :doh:
I made many ways to doing this but none of them are usable for all deferent ways!!

do you know any right way?

推荐答案

看看

这篇关于将列表发送到Crystal Report的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆