We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
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.

ReportViewer parameters

Hi, I have a question there any way to hide onload the parameters values than appears below the toolbar in the reportviewer, I am using rdlc reports, thaks in advance

5 Replies

YD Yuvaraj Devarajan Syncfusion Team August 17, 2017 07:36 AM UTC

Hi Jaime, 

Thanks for contacting Syncfusion support. 

We can hide the parameter block for the report in ReportViewer container using toolbarSettings property as shown in below code example, 
 
<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%"> 
    <div style="width:100%; height:100%; position:absolute;"> 
        @(Html.EJ().ReportViewer("reportsample") 
        .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local) 
        .ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi")) 
        .ReportPath("~/App_Data/Product List.rdlc")   
        .ToolbarSettings(tb=>tb.Items(Syncfusion.JavaScript.ReportViewerEnums.Toolbaritems.All & ~Syncfusion.JavaScript.ReportViewerEnums.Toolbaritems.Parameters))               
        ) 
    </div> 

Please refer to the below UG documentation link for more detail, 

Regards, 
Yuvaraj D. 



JA jaime August 18, 2017 09:49 PM UTC

Thanks for your reply, works perfect, I using drillThrough, when I show the child report I hide the parameters block, now when you return using the toolbar button, how can you show again the parameters block?, thanks for your help and support.



YD Yuvaraj Devarajan Syncfusion Team August 21, 2017 11:10 AM UTC

Hi Jaime, 

Thanks for the update. 

In ReportViewer, “toolbarsetting” property helps to hide the parameter block in current report viewer control instance, we are using same report viewer instance to render the parent and child reports, due to this we can’t hide for parent and show in child report rendering using the toolbarsetting API. However, you can achieve your requirement by using all the parameter in parent report as visible and hidden for child reports.   

For RDL: In ReportBuilder, you can specify the parameter visibility as hidden in Report Parameter property dialog box as shown in below screenshot, 
 
 
 
For RDLC: Visual Studio RDLC designer doesn’t allow to set the parameter visibility as hidden in UI due to some RDLC compatibility. So, you can manually set the parameter visibility as hidden in RDLC definition file as shown in the below screenshot, 

 

Please refer the below MSDN link for more detail, 

Regards, 
Yuvaraj D. 



JA jaime August 21, 2017 04:18 PM UTC

Thanks a lot for your support,  this worked perfect for me!



YD Yuvaraj Devarajan Syncfusion Team August 22, 2017 04:31 AM UTC

Hi Jaime, 
 
Thanks for the update. We are happy to hear that your issue is resolved. 
 
Regards, 
Yuvaraj D. 


Loader.
Up arrow icon