[英]Formatting Value Decimal Microsoft Report C#
Hello I have a problem with C # software that uses Microsoft's report, I should print a decimal value n2 in the format, but when I print the report inverts inverts the point with the point, how do I fix? 您好,我在使用Microsoft报表的C#软件方面遇到问题,我应该以格式打印一个十进制值n2,但是当我打印报表时,将点反转为点,如何解决? I put below the setting of the image size and n2 of the printed report
我将图像尺寸和打印报告的n2设置为以下
Setting Report: 设定报告:
Printed Report 印刷报告
Currency Windows Settings 货币窗口设置
Visual Studio Setting and Report Visual Studio设置和报告
There are some things you have to check for solving this problem. 解决此问题需要检查一些事情。
Use regional Settings
Use regional Settings
This will ensure the .
这将确保
.
and the ,
will be used suitable as currency to the client which prints the report. 和
,
将适合作为打印报告的客户的货币。
Regional and Language Options
Regional and Language Options
Open "New Task" with Windows Key + R and type in intl.cpl
for getting them. 使用Windows键+ R打开“新任务”,然后键入
intl.cpl
以获取它们。 Then click on Additional Settings
and check the tab with Currency
. 然后单击
Additional Settings
,然后选择带有Currency
的选项卡。
After changing this you have to log off your windows account and login again for applying this settings. 更改此设置后,您必须注销Windows帐户,然后再次登录以应用此设置。
#.#,00
#.#,00
Also make sure this field is empty if you are using solutions from above. 如果您使用的是以上解决方案,请确保此字段为空。
There is your bad boy: 有你的坏孩子:
It should be #.#,00
but the current set format value equals to your wrong output. 它应该是
#.#,00
但是当前设置的格式值等于您的错误输出。 This field is overriding your settings. 此字段将覆盖您的设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.