Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can RS Reports content be controlled through the ReportViewer control in C#

Posted on 2011-03-09
3
Medium Priority
?
399 Views
Last Modified: 2012-06-27
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?

Thanks.
0
Comment
Question by:thayduck
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 1500 total points
ID: 35086784
0
 

Author Comment

by:thayduck
ID: 35094203
Thanks for the link.  That will do the trick.
0
 

Author Closing Comment

by:thayduck
ID: 35094216
Only a link was provided so no effort was required to explain a solution.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question