简体   繁体   English

格式化值十进制Microsoft Report C#

[英]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. 解决此问题需要检查一些事情。

1. Disable Use regional Settings 1.禁用Use regional Settings

那个设定

This will ensure the . 这将确保. and the , will be used suitable as currency to the client which prints the report. ,将适合作为打印报告的客户的货币。

2. Check Server's / Clienst's Regional and Language Options 2.检查服务器/ Clienst的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帐户,然后再次登录以应用此设置。

3. Set Format directly to #.#,00 3.将格式直接设置为#.#,00

Also make sure this field is empty if you are using solutions from above. 如果您使用的是以上解决方案,请确保此字段为空。

属性窗口


Update 更新资料

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM