How to create dynamic report in ASP.Net report viewer RRS feed

  • Question

  • User1211961793 posted

    Hi ALL,

    I want to generate MS report dynamically according to user selection of columns.

    Let's say user have list of all available columns and user will select 5 columns out of 10 and click on Get Report. As a resultant output report should be displayed with 5 columns only.

    How can i do these with VS rdlc and asp.net report viewer control.

    Please help me.


    Friday, February 7, 2014 12:55 AM

All replies

  • User-1185172246 posted

    You must read RDLC specification and then create the report using C# or VB. As RDLC is simple XML behind the scenes, then only hard task is to learn RDLC spec. As a short term solution, you could create a RDLC report in VS using visual editor with 2 columns, then save, then open it with Notepad to analyze the XML generated... then create the same report with 5 columsn, and see how those cols are added into the XML, etc. In doing that, you would have a basic XML report code to start with.


    Monday, February 10, 2014 6:40 AM