如何在rdlc报表中拆分文本框 [英] How to split text box in rdlc report

查看:80
本文介绍了如何在rdlc报表中拆分文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家晚上好,
我使用rdlc开发了一个报告.
我只是在其中显示一个表数据.
字段是id int,名称字符串,十进制数.

像下面这样的数据..
id名称数量
1豪华-@ 5%500
2服务费-@ 6%400

现在我必须自定义名称字段.
所以我发送了另一个参数
如果我发送的参数为1,则数据类似于上表.
如果我发送的参数为零,那么数据就像下面这样.

id名称数量
1豪华500
2服务费400

我不知道如何写条件以及如何拆分名称文本字段.
感谢您.

Good evening all,
i developed a report using rdlc.
i just show one table data in that.
fields are id int, name string, decimal amount.

data like the bellow..
id name amount
1 luxury- @5% 500
2 Service Charges -@6% 400

now i have to customize name field.
so i send a another parameter
if i send parameter is one the data is like above table.
if i send parameter is zero then data is like bellow.

id name amount
1 luxury 500
2 Service Charges 400

i don''t know how to write condition and how to split name text field.
Thanking u..

推荐答案

每个控件都有表达式"选项.您只需要在其中使用iif语句即可.

像这样的东西:
用于奢华领域
There are ''Expression'' option available for every control. All you need is to use a iif statment in it.

Something like:
for luxary field
="1 luxury:" & iif(Parameters!ParamName.Value == "1","@5% "&Fields!mydata.Value,  Fields!mydata.Value)



试试吧!



Try!


这篇关于如何在rdlc报表中拆分文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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