IDAutomation.UPCE
jdubs edited this page Oct 23, 2016
·
1 revision
The UPCe barcode option is used in IDAutomation Barcode Fonts, Components and Applications to create a UPC-E barcode, which is a symbology that is used to encode 12 digits of the GTIN.
http://www.idautomation.com/barcode/UPC-E.html
SpecName (constant) The variable containing the input to be converted. Proper UPC font must be applied in the template.
ErrorMessage (multiple | optional) The error message to return when any error occurs.
public static void UPCE(string SpecName, object ErrorMessage)
{
Actions.Break();
try
{
string code = Actions.Variable(SpecName).Value;
Actions.Variable(SpecName).Value = CallFontEncoder("UPCe", new object[] { code });
}
catch (Exception ex)
{
throw new Actions.Four51ActionsException(ex.Message, (string)ErrorMessage);
}
}