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.

How do you change the labels on the Parameters panel of the SfReportViewer

Specifically, I'd like to change the default heading ("ReportParameters") and the two buttons ("ParameterViewReport" and "ReportParameterCancel")

Thanks ....

6 Replies

VS Vinoth Srinivasan Syncfusion Team May 23, 2018 01:38 PM UTC

Hi Ryan, 

Thanks for your interest in Syncfusion Components. 

We can achieve your requirement by overriding the default theme applied to the report viewer or using resource file. Could you please update us the product version that you are using it will be helpful for us to provide the solution at the earliest. 

Regards, 
Vinoth S. 



RR Ryan Richard May 23, 2018 01:47 PM UTC

We are using 15.4.0.7 for the Report Viewer.

Also, I'd like to change the date picker for datetime parameter with a custom date picker that we developed.  Please let me know if this is possible.   


RR Ryan Richard May 29, 2018 03:41 PM UTC

Hello, can you please provide an update on this request?  Thanks.


NK Nanda Kumar Thangamani Syncfusion Team May 30, 2018 03:25 AM UTC

Hi Ryan, 

I'd like to change the date picker for datetime parameter with a custom date picker that we developed 
As of now we don’t option to use the custom datatime picker instead of default date picker for parameter displayed in the control parameter block. However you can hide the default parameter block displayed in our control and create your own customized parameter block and pass the values to our control through SetParameter() method provided in report viewer. 
Specifically, I'd like to change the default heading ("ReportParameters") and the two buttons ("ParameterViewReport" and "ReportParameterCancel") 
If you are planning to implement your own parameter block then you can customize the block and its elements as per your requirements. Please confirm whether this meets your requirement, so that we can share more details on creating custom parameter user interface. 

Regards, 
Nandakumar T. 



RR Ryan Richard May 30, 2018 08:37 PM UTC

Thanks for the last response.

I'm ok with using the default date picker in the parameter block.  Please send instructions on overriding the default theme used by the parameter block so that I can change the labels on the buttons.


NK Nanda Kumar Thangamani Syncfusion Team June 4, 2018 02:11 PM UTC

Hi Ryan, 

Thanks for your patience. 

We have prepared a custom reportviewer theme file with static label text for the buttons ParameterViewReport and ReportParameterCancel (Button x:Name="PART_ViewReport" and Button x:Name="PART_ParameterCancel"). We can override the default theme for the reportviewer using “Style” tag with the custom theme. Please refer the below code snippets for your reference. 

ReportViewerStyle.Xaml: 
 
<Style x:Key="CustomTheme" TargetType="local:SfReportViewer"> 
 
App.Xaml: 
 
<Application.Resources> 
    <ResourceDictionary> 
        <ResourceDictionary.ThemeDictionaries> 
            <ResourceDictionary x:Key="CustomTheme" Source="ReportViewerStyle.xaml"/> 
        </ResourceDictionary.ThemeDictionaries> 
    </ResourceDictionary> 
</Application.Resources>    

MainPage.Xaml: 
 
<Reports:SfReportViewer x:Name="ReportViewer" Style="{StaticResource CustomTheme}"/> 


Also, we have attached a Report viewer sample and it can be downloaded from the below location. 


Nandakumar T. 



Loader.
Up arrow icon