Can RS Reports content be controlled through the ReportViewer control in C#
Posted on 2011-03-09
I have a report dataset that dynamically returns columns based on which columns a user chooses to include in the GUI. I have built a report in which I include all columns and then hide those that weren't chosen, but this leads to large, empty report areas when printing (there are about 150 columns to choose from). Also, the user wants to be able to choose the order in which columns display, which is currently hard coded in the report.
Is there a way to create a report shell with perhaps an empty tablix (either rdl or rdlc) and dynamically add the columns (or have the report do it) in C# through the ReportViewer control?