I have a report that will be published for consumption in both the US and the UK. I thought report builder would display the dates based on the users specific OS Culture. To test this out I changed my PCs Culture to French and the dialog in report builder showed the proper formats, but when I run the report it still shows in the US Format.

The backend SQL Database is in the US.

My other option is to use YYYY-MM-DD, but I'd rather show the dates in the users preferred format.

有帮助吗?

解决方案

You can control the display format of dates, numbers etc. by setting the Language property of the affected textboxes (or the entire Report). If you don't set this property then these types of data are rendered using the culture settings of the Report Server (in your case this will be U.S. formats).

To make your report responsive to the culture setting of the client PC you can set the Language property (of the whole Report or individual text boxes) using the expression

=User!Language

More information: http://technet.microsoft.com/en-us/library/ms159642.aspx

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top