DevExpress Xtra 报告使用业务对象作为数据源
我正在尝试 DevExpress Xtrareports,但有一个简单的问题,我无法找到答案。
在 Asp.net 网站项目中,我想将业务对象作为数据源添加到我的报表中,然后将字段从新的业务对象数据源拖放到报表设计器上。
有人可以帮助解释一下我是如何做到这一点的吗?
我想我刚刚错过了一些东西。
谢谢伊恩
I am trying out DevExpress Xtrareports, but have asimple problem that I am not able to find an answer to.
In an Asp.net website project, I want to add a business object to my report as a datasource and then drag and drop the fields from my new business object data source onto the report designer.
Can some one help explain how i do this.
I asssume I have just missed something.
Thanks
Ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决此问题的一种方法是为设计人员提供一个数据集,其中包含一个或多个代表您的业务对象的数据表。当然,您必须编写一些代码来将业务对象转换为数据表并返回。
附带说明一下,DevExpress 有一个非常好的支持论坛,我总是能得到有关他们产品的问题的答案。我建议你在那里尝试你的问题,除非你得到一个非常好的答案。
One way to solve this would be to give the designer a DataSet with one or more DataTables representing your business object. You would of course have to write some code to convert your business object to the data table and back.
As a side note DevExpress have a really good support forum and I have always gotten answers to my questions regarding their products. I recommend you try your question there unless you get a really good answer.