Greetings.
I have a SSRS 2005 report that shows prices of things. For some customers, I hide a column from the table (with an expression on the Visibility – hidden property).
When I do this, my table shrinks. I've searched long and hard for a way to dynamically resize this table (or to do something at design time to make it stay the same width), but I'm stuck.
Answers that simply state 'You can't do this' won't help me. I've read that already:
http://forums.asp.net/t/1354956.aspx
I'm hoping that some smart soul of the SO community has a workaround for me. Thanks!
Best Answer
The only way I know how to accomplish this, is by altering your RDLC file during runtime. Basically, you can load up your RLDC file into memory (its just an XML file), locate the XML node that contains the width of your table - then modify the setting in memory. Once you have done that, you can refresh your reportViewer control using the RDLC file that is loaded in memory.
And yes, I have already done this, and it does work.
The following code example is to alter the data of an RDLC file in memory, via its XMLpath.