在空报表查看器中显示特定字段 [英] Display specific fields in an empty report viewer
本文介绍了在空报表查看器中显示特定字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个空的报告,我想通过 用户选择字段到vb中的reportviewer ...例如当用户选择他想要在
空的reportviewer中显示的某些字段时,我的数据集是(std_id,std_name,std_datebirth,std_placeofbirth,std_class,std_grade),我想要的只是选择的那些显示不是全部。
I have an empty report , I would like to pass user choosen fields to reportviewer in vb... for exmple my dataset is ( std_id, std_name, std_datebirth,std_placeofbirth, std_class, std_grade) when user choose some fields that he wants to display in an empty reportviewer, i want just the choosen ones displayed not all.
请任何帮助
推荐答案
在rdlc中的列的右列中输入隐藏的表达式
Enter a hidden expression in the right column of a column in rdlc
=iif(Parameters!ReportParameter1.Value="False",true,false)
Dim hideValue As String = "False"
Dim rp As ReportParameter = New ReportParameter("ReportParameter1", hideValue)
reportViewer1.LocalReport.SetParameters(New ReportParameter() {rp})
最好的问候,
Alex
这篇关于在空报表查看器中显示特定字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文