I\'m working on an app that sends raw data to zebra printer and print out barcodes. And since every item has its own unique barcode, I need to define a variable that automat
You can simply use:
var temp = Guid.NewGuid().ToString().Replace("-", string.Empty); var barcode = Regex.Replace(temp,"[a-zA-Z]", string.Empty).Substring(0, 12);