Home/ASP.NET Forums/Advanced ASP.NET/SQL Server Reporting Services/ReportViewer does not refresh when rdlc file changes

ReportViewer does not refresh when rdlc file changes [Answered]RSS

9 replies

Last post Jun 03, 2011 02:22 AM by raJanchellappaN

  • Nai-Dong Jin - MSFT

    Nai-Dong Jin...

    All-Star

    35464 Points

    3430 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Nov 19, 2007 10:28 PM|Nai-Dong Jin - MSFT|LINK

    Hi,

    The error "some parameters or credentials have not been specified" indicates that you have not set your parameters well, which is needed for your report.

    And based on the code you provided,

    List<ReportParameter> paramList = new List<ReportParameter>();this.ReportViewer1.LocalReport.SetParameters(paramList);

    You have created a ReportParameterList, but you haven't add any report parameter to the parameter list.

    Thanks.

    Please mark the replies as answers if they help or unmark if not.Feedback to usMicrosoft One Code Framework
  • semmav1

    semmav1

    Member

    1 Points

    10 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Nov 20, 2007 10:57 AM|semmav1|LINK

    Thanks,

    That is the part of the problem, first rdlc has 2 parameteres

    but second one has no parameters and when I reset to second one it goves me this message.

     

  • Momo_Stev

    Momo_Stev

    Participant

    1540 Points

    222 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Nov 20, 2007 10:16 PM|Momo_Stev|LINK

    List<ReportParameter> paramList = new List<ReportParameter>();this.ReportViewer1.LocalReport.SetParameters(paramList);

    As the second report has no parameters, remove the above line, you are adding an empty parameter list.

  • santosh.jha.net

    santosh.jha....

    Member

    52 Points

    249 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Dec 19, 2008 05:46 AM|santosh.jha.net|LINK

    hello

    i am using this code but i could not change  new rdlc file  ,data  is displying but old rdlc  file .
    i don't know why does  reportviewer  not change new rdlc file

    plz send me some appropriate  help
    Thanks

     

  • raJanchellappaN

    raJanchellap...

    Member

    4 Points

    34 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Jun 03, 2011 02:22 AM|raJanchellappaN|LINK

    hi

     

    you can use ReportViewer.Reset() method. hope this would help you1

    Regards,
    Rajan
  • raJanchellappaN

    raJanchellap...

    Member

    4 Points

    34 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Jun 03, 2011 02:22 AM|raJanchellappaN|LINK

    hi

    Regards,
    Rajan
  • raJanchellappaN

    raJanchellap...

    Member

    4 Points

    34 Posts

    Re: ReportViewer does not refresh when rdlc file changes

    Jun 03, 2011 02:22 AM|raJanchellappaN|LINK

    hi

    Regards,
    Rajan
  • ‹ Previous Thread|Next Thread ›