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 date format in Report Viewer.

Hello.
I need ability to change date format for parameters in Report Viewer. For now format is: M/d/yyyy. I've tried setting locale as shown below:
$("#container").ejReportViewer({
reportServiceUrl:"...",
serviceAuthorizationToken:res["token_type"]+""+res["access_token"],
processingMode:ej.ReportViewer.ProcessingMode.Remote,
reportPath:"...",
locale:'de-DE' });

but I've got no result. Is there any way to do this?


3 Replies

MS Mahendran Shanmugam Syncfusion Team March 27, 2018 08:45 AM UTC

Hi Oskar, 
 
Thanks for contacting Syncfusion support, 
 
From the shared image, we can see that the de-DE culture is set in your html page and the mentioned problem might be occurred due to the culture scripts are not referred in viewer page. We request you to refer the culture (de-DE) scripts to resolve the problem as shown in below code example. 
<head> 
    <title></title> 
    <link rel='nofollow' href="http://cdn.syncfusion.com/15.4.0.20/js/web/flat-azure/ej.web.all.min.css" rel="stylesheet" /> 
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> 
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script> 
    <script src="http://cdn.syncfusion.com/15.4.0.20/js/web/ej.web.all.min.js" type="text/javascript"></script> 
    <script src="Script/ej.localetexts.de-DE.min.js"></script> 
    <script src="Script/ej.culture.de-DE.min.js"></script> 
 
</head> 
<body> 
     
    <div style="height: 650px; width: 1200px; min-height: 404px;" id="container"></div> 
    <script type="text/javascript"> 
        $(function () { 
            $("#container").ejReportViewer( 
                { 
                    reportServiceUrl: '/api/ReportApi', 
                    processingMode: ej.ReportViewer.ProcessingMode.Remote,                   
                    reportPath: '~/App_Data/TestingReport.rdl', 
                    locale: 'de-DE' 
                }); 
        });       
    </script> 
 
</body> 
   
The script and sample can be downloaded from the below location. 
 
If the issue is still persist then revert us the modified sample based on your application to validate the problem at our end. 
 
Regards, 
Mahendran S. 



OM Oskar Morawiec March 28, 2018 11:08 AM UTC

Thank you very much. Works great!


YD Yuvaraj Devarajan Syncfusion Team March 29, 2018 04:54 AM UTC

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


Loader.
Up arrow icon