如何在一个rdlc中创建多个报告? [英] How to create multiple reports in one rdlc?

查看:90
本文介绍了如何在一个rdlc中创建多个报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理RDLC报告,并曾处理过子报告,分组,列表等
我想在一个RDLC报告文件中显示3个报告(彼此之间相差2到3个字段和参数)?
有人可以协助我吗?
告诉我这是否可行.因为从逻辑上我认为这不可能发生

I am working on RDLC reports and have worked on sub reports, grouping, lists etc
I want to show 3 reports (which differs from each other by 2 to 3 fields and parameters) in one RDLC report file?
can anyone assist me on doing this?
tell me if it is not possible.Because i think logically this cant happen

推荐答案

我自己已经解决了这个问题.谢谢
I have solved this myself. Thankyou


很抱歉,您没有提供解决方案,也没有回复..有点忙.

实际上,我们不能在一个rdlc报表中包含多个设计,或者可以说我们不能在单个设计器中打开多个rdlc报表.

我们可以做的就是..
我们可以使用传递给rdlc文件的bool参数来管理列的可见性,并且在运行时设计器将决定必须显示哪个列以及应该隐藏哪个列.要显示或隐藏的每一列.
像在列可见性中一样,键入此表达式

= iif(Parameters!CountryVisible.Value ="True",true,false)

可见的国家/地区是已通过代码传递以实现列可见性的参数.


您还可以通过参数管理分组数据和分组字段
Sorry for not giving solution that time and for not replying.. Was bit busy.

Actually we cant have multiple designs in one rdlc reports or you can say we cant open multiple rdlc reports in single designer.

What we can do is that..
We can manage column visibility with bool parameters passing to rdlc file and at runtime designer will decide which column has to display and which column should be hidden.. Now I can open 3 reports having difference of 3 to 4 columns by passing bool type parameter for each column to display or hide.
like in column visiblity type this expression

=iif(Parameters!CountryVisible.Value="True",true,false)

where country visible is that parameter which has been passed through code for column visiblity.


You can also manage group data and group field through parameters


Hi,

you want to show 3 different reports in one single report then you can use subreports. Assume each of your report as a subreport & bind it with the main report.

If this wasn't the question then make it a bit more clear.


这篇关于如何在一个rdlc中创建多个报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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