Skip to content

IDAutomation.MSIPlessey

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

The MSI barcode option is specified in IDAutomation Barcode Fonts, Components and Applications to create an MSI Plessey barcode, which includes only numbers.

Reference

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

Clone this wiki locally