Skip to content

IDAutomation.UPCE

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

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.

Reference

http://www.idautomation.com/barcode/UPC-E.html

Parameters

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.

Source Code

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);
	}
}

Clone this wiki locally