Parameters dialog in Active Reports 16

Posted by: alexshakurin on 14 February 2023, 8:46 pm EST

    • Post Options:
    • Link

    Posted 14 February 2023, 8:46 pm EST

    Hello,

    We’re experiencing a strange issue after migrating from AR 15 to AR 16.

    When running report in the WPF application we no longer see Active Report’s parameters dialog.

    We have some parameters which should be entered by users. And they entered them via built-in Active Report’s dialog.

    However, with AR 16 this stopped working.

    I checked docs at https://www.grapecity.com/activereportsnet/docs/versions/v16/online/parameters.html and we have all three conditions for the dialog from “Prompting for Parameter Values” section:

    1. At least one parameter should exist in the Parameters collection of the report.
    2. The PromptUser property for at least one parameter must be set to True.
    3. On the report object, the ShowParameterUI property must be set to True

    I also didn’t see any mentions of the breaking changes in the AR 16 release notes. Probably I’m missing something here but I have no idea what.

    Has anyone experienced the same issue?

  • Posted 15 February 2023, 9:30 pm EST

    Hi Alex,

    We tried to replicate the issue you are facing, we made sure all three conditions you mentioned are met. However, we were not able to replicate the issue on our end.

    We have attached our WPF Viewer sample, we’ll suggest you try using your report in our sample to see if the issue gets resolved. If the issue persists please try sharing your report so we could investigate the issue further.

    Regards,

    Anand

    ActiveReports_WPFViewer.zip

  • Posted 20 February 2023, 12:02 am EST

    Hello,

    Sorry for the late answer.

    I took provided example and updated it so that it loads the report the same way as in our application (we load reports from the database - hence we’re using byte array and memory stream)

    Seems like we’re loading reports incorrectly. But I’m not sure how we can fix this.

    ActiveReports_WPFViewer.zip

  • Posted 20 February 2023, 4:59 pm EST

    Hi Alex,

    Looking at your sample we could observe that you have loaded the ‘SectionReport.Document’ object into your viewer. The ‘SectionReport.Document’ stores the rendered document i.e. at the time of passing ‘SectionReport.Document’ as we have not assigned any Parameter values to the report it gets rendered without any value and its generated SectionDocument is displayed in the Viewer.

    To fix this issue you may just pass the ‘sectionReport’ object so that the SectionReport is Run in the viewer and the parameters can be inputted through the parameters panel.

    I’ve updated the sample and attached it to this response you may refer to the same.

    Regards,

    Anand

    ActiveReports_WPFViewer_Updated.zip

  • Posted 20 February 2023, 11:37 pm EST

    Hello Anand,

    Your solution works. Thanks a lot!

  • Posted 21 February 2023, 5:00 pm EST

    Hi Alex,

    We’re glad we were able to help.

    Regards,

    Anand

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels