使用自定义对象作为 Microsoft Reports (.rdlc) 的源 [英] Use custom objects as the source for Microsoft Reports (.rdlc)

查看:80
本文介绍了使用自定义对象作为 Microsoft Reports (.rdlc) 的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在某些情况下,我更喜欢使用自定义对象而不是强类型数据集和数据行.但是,Microsoft Reporting(包含在 VS2005 中)似乎需要强类型数据集.

In some instances, I prefer working with custom objects instead of strongly typed datasets and data rows. However, it seems like Microsoft Reporting (included with VS2005) requires strongly typed datasets.

有没有办法使用我的自定义对象来设计和填充报告?

Is there a way to use my custom objects to design and populate reports?

推荐答案

我找到了答案.是的,这是可能的.您只需要在 Visual Studio 中添加一个自定义对象作为数据源.

I found the answer. Yes, it's possible. You just have to add a custom object as a datasource in visual studio.

http://www.gotreportviewer.com/objectdatasources/index.html

这篇关于使用自定义对象作为 Microsoft Reports (.rdlc) 的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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