如何设置“*”+ Sum(Fields!Barnumber.Value," DataSet1")+" *"表达 [英] how to set "*"+Sum(Fields!Barnumber.Value,"DataSet1")+"*" expression

查看:110
本文介绍了如何设置“*”+ 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"))+"*"


这篇关于如何设置“*”+ Sum(Fields!Barnumber.Value," DataSet1")+" *"表达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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