如何设置“*”+ Sum(Fields!Barnumber.Value," DataSet1")+" *"表达

问题描述:

大家好,

如果你能帮助我,我需要一些帮助。我正在创建RDL报告并在其上放置条形码(free3 of 9 font)但我必须设置数字的第一个和结尾符号,因此条形码阅读器可以读取它像

* 1234 *

我知道值的字符串用于

Hi everyone,
I need some help if you could please help me. I'm creating RDL reports and puting Barcode on it with (free3 of 9 font) but I have to set the first and end of numbers star symbol so barcodereader can read it like
*1234*
I know the value is string is used like

="*"+First(Fields!FirstName.Value,"DataSet1"+"*")// this one works fine



但是有了整数值它会给出错误


but with integer value it give error

="*"+sum(Fields!CustomerId.Value, "DataSet1")+"*"// in here it won't work



所以任何帮助都会如此受到赞赏..........


so any help will be so appreciated..........

sum是一个数字,尝试将其转换为 CStr 的字符串。类似

Since the sum is a number, try converting it to a string with CStr. Something like
="*"+CStr(sum(Fields!CustomerId.Value, "DataSet1"))+"*"