本文介绍了Reporting Services-报表的本地化(.rdl/.rdlc-文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要本地化Reporting Services报告(.rdlc),并且我想使用资源文件(.resx)来做到这一点.
我发现了,并且他们使用自定义代码来实现其目标.
但是类似在URL中设置报告语言参数,印象是无需自定义代码就可以在报告中进行本地化.

i need to localize a Reporting Services-report (.rdlc) and i would like to do it using a ressource-file (.resx).
I found pages like this and that and they use custom code to achieve their target.
But pages like Setting the Report Language Parameter in a URL give me the impression that localization in reports is possible without custom code.

因此,可以在不使用自定义代码的情况下本地化Reporting Services-报告吗?
如果是这样,是否有一个教程来解释它是如何完成的?

So, it is possible to localize a Reporting Services-report without custom code ?
If so, is there a tutorial that explains how it's done?

推荐答案

您要在报告中本地化什么?

What in the report do you want to localize?

    来自数据库的
  • 个值?这些应该已经以适当的语言从数据库中检索了

  • values from the database? Those should be retrieved from the database in the appropriate language already

在报告上固定了标签和文本框?我尚未看到任何令人信服的方法来执行此操作-您可以拥有

fixed labels and textboxes on the report? I have not yet seen any compelling way to doing this - you can either have

  • 每种语言一份报告骨骼"/模板(并选择您需要的一种)
  • 如果元素的数量是可管理的,则定义报告参数(可以从调用代码中设置),以设置标签和文本
  • 使用一些自定义.NET扩展名来处理本地化

实际上,这并不是一张非常漂亮的图片-我本人将对更好的解决方案最感兴趣! (我通常需要为任何报告支持3-4种语言-并且我仅使用基于服务器的.RDL文件,而不使用.RDLC,因此在我的情况下,任何依赖于客户端资源文件的本地化都无法使用)

It's not really an awfully pretty picture, indeed - I'd be most interested in better solutions myself! (I typically need to support 3-4 languages for any report - and I'm using only server-based .RDL files, no .RDLC, so any localization that depends on client-side resource files is not usable in my case)

这篇关于Reporting Services-报表的本地化(.rdl/.rdlc-文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 01:43