How do I adjust overall width of rdlc report when some columns are hidden?
Posted
by user115487
on Stack Overflow
See other posts from Stack Overflow
or by user115487
Published on 2010-03-08T22:03:48Z
Indexed on
2010/03/08
22:06 UTC
Read the original article
Hit count: 368
I have a customizable rdlc report where the user can choose which columns to show. All the columns are included in the report designer, and I use parameters to hide/show columns based on the user's choice. The report renders correctly, and only shows the selected columns, HOWEVER, the overall width of the report is the same as if all the columns were visible. This means that the report can have a huge empty area to the right of the selected columns, which looks very silly.
So my question: Is there a way to adjust the report width dynamically at runtime to avoid a large silly empty area in the report? I attempted to do this in the designer by assigning a parameter to the width of the report body....but that was not allowed. The width cannot be an expression of any kind in the designer, only an actual value is allowed.
Any suggestions?
© Stack Overflow or respective owner