SQL Server Reporting Services - 本地化报告?
我有一些 SSRS 2008 报告需要本地化。即:
- 报表标题、列标题等。全部都需要位于用户的区域设置中。 (请注意,在我的情况下,User!Language 表达式可能有用,也可能没用,但这不是主要问题。)
- 本地化字符串必须可以从与实际报告数据相同的数据库中的表中检索。单独的本地化 RDL 对我们不起作用。本地化将由非开发人员管理,因此我们为他们提供了一个 UI,供他们自行更改本地化字符串。
- 如果可以的话,我们非常不愿意通过自定义程序集检索字符串。我们过去在部署自定义程序集时遇到了麻烦,当然它也引入了一些调试复杂性。
欢迎所有想法。
I have some SSRS 2008 reports that need to be localized. That is:
- Report titles, column headers, etc. all need to be in the user's locale. (Note that in my situation, the User!Language expression may or may not be useful, but that's not the major problem.)
- The localized strings must be retrievable from a table within the same DB as the actual report data. Separate localized RDLs won't work for us. Localization will be managed by non-developers, so we've provided a UI for them to change localized strings themselves.
- We'd very much prefer not to retrieve strings through a custom assembly, if we can help it. We've had trouble in the past deploying custom assemblies, and of course it introduces some debugging complexity as well.
All ideas are welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您只需要数据库上的一个表,其中包含每个人的国家/地区偏好及其用户 ID。然后根据用户 ID,您可以相应地设置格式。
不过,这是很糟糕的做法。为什么不能使用 User!Language?
I guess you just need a table on the db with everyone's country preference against their user ID. Then based on the user ID you can set the formatting accordingly.
Pretty bad practice though. Why can't you use User!Language?