none
Dynamic Parameter Prompt Rdlc RRS feed

  • Question

  • Hello,

    Is there any way I can create dynamic parameter prompt like SSRS in windows form application based on user selected rdlc.

    If User selects one rdlc -> Read Rdlc Find Linked Parameters -> Create Dynamic Controls for each parameter based on data type.

    Please guide me how can I start for this

    Saturday, October 21, 2017 8:34 AM

All replies

  • Yes it can be done. But the report viewer control is already wired up to do this so you should really  just point the report viewer to the selected RDLC and have it generate the parameter UI like normal.

    If you want to do it yourself then you'll need to enumerate the parameters using GetParameters. For each parameter you'll have to figure out which control to render for it. Note that you'll have to take into account the following about each parameter.

    1. Parameters can be hidden, don't show them
    2. Parameters can have a default value that may come from a query
    3. Parameters may provide a list of options to choose from, also from a query
    4. Parameters may or may not be required
    5. Parameter names and their display labels can differ

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, October 23, 2017 2:28 PM
    Moderator