Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,
I code:
VB
rptViewer.Reset()
        Dim rptS As New ReportDataSource
        rptS.Name = "DataSet1"
        rptS.Value = binSource
        rptViewer.LocalReport.DataSources.Add(rptS)
        rptViewer.LocalReport.ReportEmbeddedResource = "QLAnChi." & strRptName & ".rdlc"
        rptViewer.LocalReport.EnableExternalImages = True
        Dim para As New List(Of ReportParameter)
        For i As Integer = 0 To strPar.Length - 1
            para.Add(New ReportParameter(strPar(i), strVal(i)))
        Next
        rptViewer.LocalReport.SetParameters(para)
        rptViewer.RefreshReport()

The details of report is refresh but the parameters dose not refresh after data is changed.
Pls help me!
Posted

You can make use of the "insert snippet" of Visual Basic.
I have done this and help you as soon as I find the code.
 
Share this answer
 
Comments
Nguyễn Minh Phúc 13-Jun-12 7:48am    
Thanks for reply!
I am waiting you, pls help me as soon as you can!
I have added
VB
rptViewer.LocalReport.DataSources.Refresh()
at the near last line but it still was not solved! I have show messagebox which data fill in parameter to check data, it's all correct but parameter values in report were still not changed!
 
Share this answer
 
Thanks for rely i have done by myself!
 
Share this answer
 
Comments
Anil Honey 206 28-Nov-12 1:43am    
How You Solved the Above Problem.Can u Explain me iam also facing the Same Problem.How to reset the Parameters in rdlc Reports.

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