C#. MSI Plessey Generator Data Encoding Tutorial
Sample source code to input valid data and generate linear MSI Plessey images in C# .NET
C# MSI Plessey Introduction
MSI Plessey, known as Modified Plessey, is a fixed-length, non-self-checking symbology used in retail business.
C# MSI Plessey barcode is a powerful C#.NET MSI Plessey generation component, offering an easy way for developers to generate MSI Plessey in C#.NET programs with a simple but complete MSI Plessey generating guide.
This article provides a complete demo for MSI Plessey data encoding in Visual C#.NET class with C#.NET component.
OnBarcode C# Barcode Generator is designed to generate, create MSI Plessey and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# MSI Plessey generation concerning size & image setting.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Encode MSI Plessey Valid Character in C#.NET
MSI Plessey valid character set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Here is a sample code for encoding MSI Plessey valid data:
Linear barcode = new Linear();
barcode.Type = BarcodeType.MSI;
barcode.Data = "1234567890123";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/msi.png");
Encode MSI Plessey Valid Character in C#.NET Using Different Check Digit Calculation
MSI Plessey barcodes may have one or two check digits. There are four types check digit calucation for MSI Plessey barcodes.
Encode MSI Plessey in C#.NET Using Modulo 10
Calculate MSI Plessey barcodes according to Modulo 10.
Linear barcode = new Linear();
barcode.Type = BarcodeType.MSI10;
barcode.Data = "1234567890123";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/msi10.png");
Encode MSI Plessey in C#.NET Using Modulo 11
Calculate MSI Plessey barcodes according to Modulo 11.
Linear barcode = new Linear();
barcode.Type = BarcodeType.MSI11;
barcode.Data = "1234567890123";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/msi11.png");
Encode MSI Plessey in C#.NET Using Two Modulo 10
Calculate MSI Plessey barcodes twice according to Modulo 10.The second Modulo 10 check digit is appended after the first checksum digit.
Linear barcode = new Linear();
barcode.Type = BarcodeType.MSI1010;
barcode.Data = "1234567890123";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/msi1010.png");
Encode MSI Plessey in C#.NET Using Modulo 11/ Modulo 10
Calculate MSI Plessey barcodes with Modulo 11, then calculated the MSI Plessey Baarcode with a Modulo 11 check digit add-on according to Modulo 10.
Linear barcode = new Linear();
barcode.Type = BarcodeType.MSI1110;
barcode.Data = "1234567890123";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/msi1110.png");
Modify MSI Plessey Valid Length in C#.NET
MSI Plessey is variable-length linear barcodes. Users may change the MSI Plessey length by typing different length data, for example:
barcode.Data = "12"; // in 2-digit length
barcode.Data = "123456789"; // in 9-digit length
barcode.Data = "12345678901234567890"; // in 20-digit length