Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET RDL
Dear all,
I code:
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 13-Jun-12 1:02am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Nguyễn Minh Phúc at 13-Jun-12 7:48am
   
Thanks for reply!
I am waiting you, pls help me as soon as you can!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I have added
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!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Thanks for rely i have done by myself!
  Permalink  
Comments
archanakumari at 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)

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 174
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100