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.



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









OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.