English 中文(简体)
SSRS 多种文化语言的报告
原标题:SSRS reports in multi culture language

我有MS Report服务器,有一份RDL文件,用英语显示一份冰报告。 我有一个网站应用程序,有一位报告观众,在协会/协会网页旁边展示这份报告。

问题在于我是否希望用多种语言发表同样的报告? 我如何这样做?

最佳回答

(1) 在数据库中储存当地化文本

2) Select the localised version of the text in a second dataset.

3) 为用户设定一个参数,以选择语言。

4) 利用审查职能将案文列入报告。

如果你想对许多报告适用本地化制度,是有用的。

问题回答

(1) 将习俗功能添加到接受“Name”和“语言”变量(如“ReportName, French”)的习俗法典中,并回归地方化案文,例如:

function Localise(Section as String) as string
  if Report.Parameters!Language.Value = 1 then

        select Section
            case "Report_Name"
                Localise = "Report Name in English"
            case "Report_Description"
                Localise = "Report Description in English"
        end select

elseif Report.Parameters!Language.Value = 2 then

        select Section
            case "Report_Name"
                Localise = "Report Name in French"
            case "Report_Description"
                Localise = "Report Description in French"
        end select

end if

end function

2) 添加一个参数,供用户选择语言(例如,使用分类法作为数值)

3) 视需要参考报告文本框中的代码,例如:

=code.localise("Report_Name")

这将非常迅速地执行和维持一份单一报告。

编写每种语文的报告,使用户能够选择不同的报告。

这将最快地执行,但可能难以维持报告。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签