The issue is related to culture-sensitive processing of parameter inputs from your application code to CR. CR is apparently badly designed when it comes to multi-lingual support in specific situations such is this one.
The solution, albeit ugly, is as follows.
For each Date, Time or DateTime parameter field that you have in your report, do the following:
- Within CR designer, change the type of the parameter field to
String.
Create a new formula field and set its value to one of the following:
CDate({?ParamFieldName}) // Date
CTime({?ParamFieldName}) // Time
CDateTime({?ParamFieldName}) // DateTime
depending on the original parameter field type, where ParamFieldName is the name of your parameter field.
In your application code, pass the parameter value in one of the following ways:
// Date
report.SetParameterValue(
"ParamFieldName",
DateTimeObject.ToShortDateString().TrimEnd('.'));
// Time
report.SetParameterValue(
"ParamFieldName",
DateTimeObject.ToShortTimeString());
// DateTime
report.SetParameterValue(
"ParamFieldName",
string.Format("{0} {1}",
DateTimeObject.ToShortDateString().TrimEnd('.'),
DateTimeObject.ToShortTimeString()));
- Within CR designer, insert formula fields instead of parameter fields and format their display within CR designer.
This has been tested on several cultures.
The ending dot in date string is being trimmed because CR, for unknown reasons, cannot process the dot, even on cultures that have the dot at the end of the dates (ie. Serbian - 14.3.2015.)