Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
dynamically changing reports at run-time with Report Viewer control in VS2010 with WebForms in C#

Unanswered dynamically changing reports at run-time with Report Viewer control in VS2010 with WebForms in C#

  • 2012年4月2日 18:46
     
     

    I've done a lot of research for Report Viewer and it seems like dynamically changing between reports is possible. Specifically what I mean is that I want to be able to dynamically switch between a report about Products to a report about Employees. My understanding is that each of these will require a unique .rdlc file to be generated. I want to be able to design the .rdlc files at design time and then switch between them at run time and also pull in the necessary data at run time as well using an object based DAL like EF or just my own POCO's populated by sprocs. Can some provide end to end  code on how to do this this? 

    I need to see how the .rdlc file is generated to be able to handle the DAL objects and how the code behind is set up to dynamically switch between these "design time" generated .rdlc files. Any help would be greatly appreciated. 

    Also, I'm working with WebForms in C#. 

    Thanks!