-
Notifications
You must be signed in to change notification settings - Fork 1
IDAutomation.EAN8
jdubs edited this page Oct 23, 2016
·
1 revision
The EAN8 barcode option is used in IDAutomation Barcode Fonts, Components and Applications to create a EAN-8 Barcode, a symbology that is most commonly used to encode 8 digits of the GTIN Barcode.
http://www.idautomation.com/barcode/EAN-8.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 EAN8(string SpecName, object ErrorMessage)
{
Actions.Break();
try
{
string code = Actions.Variable(SpecName).Value;
Actions.Variable(SpecName).Value = CallFontEncoder("EAN8", new object[] { code });
}
catch (Exception ex)
{
throw new Actions.Four51ActionsException(ex.Message, (string)ErrorMessage);
}
}