Click here to Skip to main content
15,906,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an RDLC report consists of three field (from a table). The field names are "name", "age", "sex". I want to filter the "sex" field to get only the female. In rdlc design I set up a parameter called ParamSex and put it in a TextBox. And here's the code for the ReportViewer1 control.
VB
Me.tblNamesTableAdapter.Fill(Me.dbtutorialDataSet.tblNames)
Dim pSex As ReportParameter = New ReportParameter("ParamSex", "Female",False)
me.ReportViewer1.LocalReport.SetParameters(pSex)
Me.ReportViewer1.RefreshReport()


It doesn't work. It only shows the first field while the first field is Male.
Please help me.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900