问题描述
如何对SSRS报告进行本地化?
How would one go about localizing SSRS reports?
假设我有一个报告,其中包含带有"Total Sales"文本的标签(使用挪威语,这是我的来源),并且我想为我们的丹麦和瑞典客户使用相同的报告,因此实际文本需要稍作更改.
Let´s say I have a report that contains a label with the text "Total Sales" (in Norwegian language, which is where I come from) and I want to use the same report for our danish and swedish customers, so the actual text needs to change slightly.
我是否需要制作所有报告的副本并手动对其进行本地化,或者有什么方法可以以更自动化的方式进行?
Do I need to make copies of all the reports and localize them manually, or is there any way to do this in a more automated way?
例如,我可以改用那些文本的表达式,然后将我们自己的本地化系统添加到报告中.使用以下表达式:
Could I for instance use expressions for those texts instead, and add our own localizing system to the reports, ie. use the following expression:
=Translate("Total Sales")
哪个将调用我们的.NET方法之一进行翻译?
which would call one of our .NET methods which would do the translation?
我们正开始使用SSRS报告,因此,如果在这方面2005年与2008年之间存在差异,请说出您所指的是哪个版本,因为我们尚未决定要使用哪个版本.支持.
We´re in the beginning of using SSRS reports, so if there is a difference between 2005 and 2008 in this regard, please say which version you´re referring to, as we haven´t decided which one(s) to support yet.
推荐答案
使用表达式需要首先注册报表服务器的自定义程序集.
Using your expressions requires you to register first the custom assembly for the report server.
从2005年到2008年,这一情况没有改变.
This has not changed from 2005 to 2008.
如何完成此操作的指南位于此处
A guide how this can be done is located over here
因此,在完成所有步骤之后,您将能够翻译所需的内容.
So, after completing all the steps you will be able to translate the stuff you need.
这篇关于本地化SQL Server Reporting Services报表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!