Updating reportviewer after changing RDLC file RRS feed

  • Question

  • In my application, I allow the user to design a report freely and saving it. After he designs the report and saving it, I modify the Reprot1.rdlc with his design (adding controls according to his design) and saving the report1.rdlc.

    I'm looking for a way to update the 'report_preview' form which contains reportviewer object that connected to report1.rdlc with the new report1.rdlc configuration.

    It keeps opening me the old report1.rdlc configuration with the previous design.

    My code is in VB 2012.

    Can anyone suggests me a way to update the reportviewer configuration with the new report1.rdlc?

    Thursday, March 1, 2018 6:09 AM

All replies

  • Try this

    ReportViewer.LocalReport.ReportPath = Application.StartupPath & "\Reports\report1.rdlc"

    • Edited by Xan To Monday, June 25, 2018 11:47 PM
    Monday, June 25, 2018 11:46 PM