Skip to content

IDAutomation.Code39

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

C ode 39 is a common barcode type used for various labels such as name badges, inventory and industrial applications. The symbology of the Code 39 character set consists of barcode symbols representing characters 0-9, A-Z, the space character and the following symbols: - . $ / + %. In addition, the full 128 ASCII character set can be encoded in Code 39.

Reference

http://www.idautomation.com/code39faq.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 Code39(string SpecName, object ErrorMessage)
{
	Actions.Break();
	try
	{
		string code = Actions.Variable(SpecName).Value;
		Actions.Variable(SpecName).Value = CallFontEncoder("Code39", new object[] { code });
	}
	catch (Exception ex)
	{
		throw new Actions.Four51ActionsException(ex.Message, (string)ErrorMessage);
	}
}

Clone this wiki locally