Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Changing report parameter visibility or making it look like dropdown list instead of textbox

Hi 

I have RDL file which is deployed to SSRS server. (I attached the report)

I configured my Web Api to connect to SSRS server to get and render the report. When the report is rendered its appearance looks like in below link.



Please notice that report parameter named as "Param" appears as a text box. It is because I have not set "Available Values" for "Param" report parameter before I deployed to SSRS.

Here my question is, can I dynamically set the "Available Values" for any report parameter I want before the report is rendered in my ReportApiController. So then, the report would appear with "Param" parameters and parameter shall be rendered as combo box with the list of values that I dynamically set.

Thank you

Attachment: SalesAnalysis_9449e46d.zip

5 Replies

YD Yuvaraj Devarajan Syncfusion Team June 5, 2018 01:22 PM UTC

Hi Osman, 

Sorry for the delay.  

We can dynamically edit the report RDL file in code behind and add the available value of the parameter in WebAPI and render the modified RDL file in our ReportViewer. Please find the below KB documentation for more information,  

Regards, 
Yuvaraj D. 



OS Osman June 11, 2018 08:50 PM UTC

Thanks for the response. Yes, this approach indeed solved my issue. 
The only problem I see with this approach is the performance overhead of additional serialization and de-serialization cost.
With this approach report flows is pretty much like the following.

Download RDL -> Deserialize RDL -> Serialize RDL-> SF Deserialize RDL Stream -> SF RDL Rendering

Without my intervention, if I provide the RDL path to Syncfusion then 

SF Download RDL -> SF Deserialize RDL -> SF RDL Rendering


So additional steps highlighted with the red had to be done with this approach. So that slows down the performance of the report rendering.

Regards.


YD Yuvaraj Devarajan Syncfusion Team June 12, 2018 01:47 PM UTC

Hi Osman, 

We have already provided this approach in our upcoming Essential studio release by passing the Deserialized value directly in WebAPI method using “ReportDefinition” as like as below code example. We have planned to release on next week.  

WebAPI: 
        public void OnInitReportOptions(ReportViewerOptions reportOption) 
        { 
            reportOption.ReportModel.ReportDefinition 
             
        } 


Regards, 
Yuvaraj D. 



OS Osman June 13, 2018 12:12 AM UTC

Ok, this is great news. Thanks for the reply.


YD Yuvaraj Devarajan Syncfusion Team June 13, 2018 04:59 AM UTC

Hi Osman, 

Thanks for the update. As promised earlier, the feature will be included in our upcoming Essential studio release.   

Regards, 
Yuvaraj D. 


Loader.
Up arrow icon