If you became a customer of the Syncfusion� Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion� Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion�.

For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.

Thank you for choosing Syncfusion� for your reporting needs.

Default parameter

Hi,

The Blazor web app I am working on is currently set to the culture en-NZ. I have defined this culture inside the javascript file that loads the SSRS report.


The DateTimeFormat is also set to en-NZ format.

When running this report without default values for my date parameters, everything works as expected. However, when I turn on the default values, I get the error String '6/30/2023 12:00:00 AM' was not recognized as a valid DateTime. The SSRS report and Bold Reports Locale are set to en-NZ, so I am not sure why the default value is being parsed in the en-US format MM/dd/yyyy which causes the error.

It is also important to note that the default value expression that is run inside the date parameters is the following: =DATEADD("d", -14, TODAY)

I would expect this expression to evaluate the Start Date to be 09/06/2023 and the End Date to be 30/06/2023

I have found a strange solution to this problem; add a random parameter (ReportParameter1) before my start and end date. For some reason it allows the date parameters to parse in the correct date format.

I have tried following this https://help.boldreports.com/report-viewer-sdk/javascript-reporting/report-viewer/localization/ and defining and providing the localization script tags. But this unfortunately did not solve the problem (I did see that NZ wasn't in the list of CDN links, maybe that's why).

This bug is effecting a lot of clients that are using the app, so it would be great if a solution could be provided quickly.

Thanks,


1 Reply

AM Arumugasami Murugesan Syncfusion Team June 23, 2023 11:20 AM UTC

Hi Elijah,


Thanks for contacting Bold Report support.


We have created a ticket for your query. Please check the ticket from the below site and follow further.

https://support.boldreports.com/support/tickets


Regards,

Arumugasami M


Loader.
Up arrow icon