Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
C#
="*"+First(Fields!FirstName.Value,"DataSet1"+"*")// this one works fine

but with integer value it give error
C#
="*"+sum(Fields!CustomerId.Value, "DataSet1")+"*"// in here it won't work

so any help will be so appreciated..........
Posted
Updated 13-Sep-15 12:05pm
v4

1 solution

Since the sum is a number, try converting it to a string with CStr. Something like
VB
="*"+CStr(sum(Fields!CustomerId.Value, "DataSet1"))+"*"
 
Share this answer
 
Comments
jame01 14-Sep-15 4:38am    
many thanks dear mika...

and here i got another solution
is putting
* in reports directly [*<exp>*]
many thanks again..
Wendelius 14-Sep-15 14:15pm    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900