How to change report layout in ReportViewer from asp.net page ? RRS feed

  • Question

  • User-775831949 posted

     I now have a ReportViewer control on asp.net page with datasource select Country, Product, Value from Table1. This reportviewer is associated with Report1.rdlc and currently Report1.rdlc has this matrix layout

    Country as row field, Product as column field and value as Calculate field (Sum)

    I want on button1click on asp.net, the report change to this layout:

    Product as row field, Country as column field, value remains as Calculate field.

    How should I proceed with this ? I know pointing to Report2.rdlc would be an option but I have more than 20 scenario and I want to keep doing it in same Report1.rdlc. Is there way to programmatically change the layout of Report1.rdlc when buttonclick is fired ?



    Wednesday, February 2, 2011 9:38 PM


  • User535082756 posted


    as far as i know it is not possible..You have to go with the option you have mentioned...

    Are if it is not complicated report try putting it in the HTML.

    Or right click on the report and open it in the XML Editor and find out whether you can play around with that..but i still doubt whether that is the best option..


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 4, 2011 5:33 AM