Alter table column width based on parameter

  • Hi,

    I have a report with two columns which the user chooses whether or not to display at runtime, based on a Boolean parameter.

    I want the report to render as a pdf, in landscape, and when these two columns are included, that works well. Of course, if they are excluded, the remaining table columns would look better presented if they were wider.

    So... is it possible to alter a table column width based on my Boolean parameter? Looking at the 'width' property of both the table column, and the individual cells within the column, there is no '' option provided.

    Note please that I know how I would write the expression to incorporate the checking of the parameter value; my problem is that I need to know whether in fact table column widths can be altered in this manner at runtime.

    Thanks

  • Hope the below url will help you

    http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/9e6043f1-c458-4540-be59-d37b02feab8a/

    Waiting for your test result

    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Please feel free to let me know if you are not clear or I’ve misunderstood anything.

    Thanks,
    Arunkumar S P

  • Thanks - a very helpful link.

    I'm using the suggestion of adding an extra column and toggling the visibility based on my parameters - each column is set to the width I require.

    Much appreciated.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply