|
|
|
Valued Member
      
Group: General Forum Members
Last Login: 2 days ago @ 2:04 AM
Points: 67,
Visits: 266
|
|
I'm looking for a barcode generating Function that uses the standard Code128. Apparently no function that fixes this has been posted before in the forum.
The way the barcode functions work is always the same: you pass a string with the source code ('bananas') and you get the coded barcode string ( ÑbananasÈÓ, always starts with capital Ñ and ends with Ó).
I have the right function in Access VBA (code attached), but I'm not able to translate this into SQL Server.
Does anyone have the equivalent SQL Server function (or knows how to translate this) ?
Thanks in advance, a.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, December 04, 2012 3:10 AM
Points: 3,
Visits: 7
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, January 20, 2013 7:43 PM
Points: 1,
Visits: 0
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, January 27, 2013 7:55 PM
Points: 1,
Visits: 0
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Sunday, February 03, 2013 6:58 PM
Points: 4,
Visits: 6
|
|
| To encode data string in Code 128, you may find a code 128 font or barcode control supports Code 128 generating in .NET app. I guess the SSRS CODE 128 control is OK.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 9:50 PM
Points: 1,
Visits: 4
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 7:10 AM
Points: 140,
Visits: 1,535
|
|
The way the barcode functions work is always the same: you pass a string with the source code ('bananas') and you get the coded barcode string ( ÑbananasÈÓ, always starts with capital Ñ and ends with Ó). I expect one or more of the functions/tools people have suggested will do the business.
But I wanted to point out that Code 128 is not quite like that. Unlike eg Code 39, it is not a straight character-for-character substitution, so just applying a font with static bracketing values doesn't work. It needs a calculated checksum (which is not shown in the human-readable version nor transmitted to the receiving system, but ensures the quality of the data read by the scanner), which is why you need to apply a function to the data you want to encode. And I do not think the control characters are universal - I have seen different font sets that have made different choices with regard to the extended characters they use to represent the control values. Presumably the ones you specify will work for your environment.
|
|
|
|