在运行时在rdlc中添加/删除列 [英] Add/Remove columns in rdlc at runtime

查看:109
本文介绍了在运行时在rdlc中添加/删除列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想用动态列创建一个rdlc报告。我的意思是我要添加或删除列以及列的排序运行在我的报告中。通过我的数据在数据表中的方式。

我已经使用xmlDocument加载我的rdlc文件并对其进行了修改但是发生了一个错误,出现了类似这样的内容:根级别无效。



请告诉我该怎么做?

解决方案

嗨phoenix1167 ,

我觉得你错过了什么,请看下面的链接。



http://dobrzanski.net/2009/02/06/how- to-dynamic-add-new-columns-to-report-created-with-reporting-services / [ ^ ]



希望对您有所帮助。



问候,

Bluesathish


Eyval,我在此链接 [ ^ ]


这里我找到了在运行时加载RDLC的好例子,我们也可能在代码隐藏中隐藏列



http://www.mixedresponse.com/Blog/Details/10

Hi everyone,

I want to create a rdlc report with dynamic columns.I mean i want to add or remove columns and also the sort of the columns at runtime in my report.by the way my data is in a datatable.
I have used xmlDocument to load my rdlc file and modify it but an error occured that says something like this : "the data at the root level is invalid".

please tell me how can i do that?

解决方案

Hi phoenix1167,
I think you've missed something, check out this below link.

http://dobrzanski.net/2009/02/06/how-to-dynamically-add-new-columns-to-report-created-with-reporting-services/[^]

Hope this helpful.

Regards,
Bluesathish


Eyval, I have found my response in this link[^]


Here I found good example of loading RDLC in runtime, we may also hide columns from codebehind

http://www.mixedresponse.com/Blog/Details/10


这篇关于在运行时在rdlc中添加/删除列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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