报告,动态更改列文本 [英] Report, dynamicaly change Column Text

查看:74
本文介绍了报告,动态更改列文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在代码中更改从我创建的报告和ReportReader正在读取的报告中显示的列的文本?



我想要知道如何,因为用户可以在使用应用程序之前选择他的语言,所以我需要根据用户的选择将列文本更改为不同的语言。



例如,想象一下名为Number的头字段,在它下面,打印我数据库中的所有数字。但如果我把它改成德语,它将是Nummer而不是Number,而在Poruguese中它将是Número,依此类推。我想做的只是改变文字。



如果有可能,我会非常感谢代码演示。

谢谢提前!

How can I change in code the text of a column that is displayed from a report I created and that is being read by the ReportReader?

I want to know how, because the user can select his language before using the app, so I kind of need to change the column text to a diferent language, depending on the choice of the user.

For example, imagine the header field that is named "Number", and below it, all the numbers from my database are printed. But if I change it to German, it would be "Nummer" instead of "Number", and in Poruguese it would be "Número", and so on and so on. All I want to do is to just change the text.

Would highly appreciate a demonstration in code if it would be possible.
Thanks in advance !

推荐答案

也许使用:

http://wpflocalizeextension.codeplex.com/

或自己实施机制。
Maybe use:
http://wpflocalizeextension.codeplex.com/
Or implement mechanisme by yourself.


这篇关于报告,动态更改列文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆