如何在C#中的rdlc中仅显示字段值而不是sum(字段) [英] How to show only field value instead of sum(field) in rdlc in C#
问题描述
先生,
我有现场运费,当我在rdlc(报告定义)中使用它时,它找到了总和(运费),我想只找到运费而不是总和。
当我在rdlc的tablix中有三条记录并且假设运费是30然后计算为90,因为有三条记录。
我想为所有三个记录显示30而不是90.
slno totalprice
1 1200
2 2600
3 1700
--------------------
运费应该是30不是90i.e总和(运费)
希望你能帮到我?
我尝试过:
Sir,
I have a field shipping charge,when i am using it in rdlc (Report Definition),it's find sum(shippingcharge),i want to find only shipping charge not the sum.
When i have three record in tablix in rdlc and suppose shipping charge is 30 then it's calculate 90 ,since there is three record.
I want to display 30 for all three record not 90.
slno totalprice
1 1200
2 2600
3 1700
--------------------
shipping charge should be 30 not 90i.e sum(shippingcharge)
hope you are getting me?
What I have tried:
=(Fields!SHIPPING_CHG.Value, "DS_Invoice")
抛出错误
textrun的值表达式'SHIPPING_CHG.Paragraphs [0] .TextRuns [0]'包含一个n错误:[BC30198]')'预计。
请帮我解决这个问题。
It throws an error
The Value expression for the textrun ‘SHIPPING_CHG.Paragraphs[0].TextRuns[0]’ contains an error: [BC30198] ')' expected.
Please help me to resolve this.
推荐答案
注意:已发布以从未答复的列表中删除上述问题。
Note: Posted to remove above question from unanswered list.
对不起,但你的问题不清楚......价值是否显示?
你试过用过: = CDbl(Fields!SHIPPING_CHG.Value)
?
Sorry, but your question is unclear... Does the values are displayed or not?
Have you tried to use: =CDbl(Fields!SHIPPING_CHG.Value)
?
谢谢,它给了我很多帮助
Thanks,it helped me a lot
这篇关于如何在C#中的rdlc中仅显示字段值而不是sum(字段)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!