C#. MSI Plessey Generator Size Setting Tutorial

sample source code to generate linear MSI Plessey images and adjust barcode size in C# .NET


  • Completely run in Visual C#.NET development environments, including Winforms applications, ASP.NET web forms, Crystal Reports, SSRS and C#.NET class & console applications
  • Simple to control MSI Plessey and supplemental data size, including X,Y dimension, barcode width & height, margin of top, bottom, left and right, etc
  • Support 4 types check digit calculation for MSI Plessey barcodes: Modulo 10, Modulo 1010, Modulo 11, Modulo 1110
  • Completely integrate into Microsoft Visual Studio2005/2008/2010
  • Provide 100% C#.NET source code and strong named assemblies
  • Support high quality MSI Plessey barcodes in GIF, BMP, PNG, JPEG/JPG & TIFF
  • Light-weight, user-friendly MSI Plessey barcode component used world-widely
  • Tutorial for MSI Plessey Image Setting in Visual C#.NET
  • Tutorial for MSI Plessey Data Encoding in Visual C#.NET

MSI Plessey, known as Modified Plessey, is a fixed-length, non-self-checking symbology used in retail business.




How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
 

MSI Plessey Structure



MSI Plessey Image Width Related Settings

W: the barcode width of MSI Plessey. Please see BarCodeWidth.

X: the width of a module bar. Please see X.

Q: the width of the quiet zone. Please see Left & Right Margin.

MSI Plessey Image Height Related Settings

H: the barcode height of MSI Plessey. Please see BarCodeHeigth.

Y: the height of a module bar. Please see Y.

Top & Bottom Margin: the height of the top & bottom margin. Please see Top & Bottom Margin.

Text Margin: the space between image bar and text. Please see TextMargin.

Text Font: the font style of human-readable text. Please see TextFont.


 

Setting MSI Plessey Barcode Size in C#

C# MSI Plessey barcode provides a set of barcode size settings to specify you MSI Plessey barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio:

Linear barcode = new Linear();

barcode.Type = BarcodeType.MSI;

barcode.Data = "123456789";

Modify your MSI Plessey barcodes by setting those following properties:

UOM

UOM is short for Unit of Measure, which is the unit of meature for all size related settings in the library. C# MSI Plessey barcode provides 3 options: Pixel, Cm, and Inch. The default is Pixel.

barcode.UOM = UnitOfMeasure.PIXEL;

Barcode Width & Height

BarcodeWidth is the MSI Plessey barcode image width. The default in C# MSI Plessey barcode is 0 (float).

BarcodeHeight is the MSI Plessey barcode image height. The default in C# MSI Plessey barcode is 0 (float).

barcode.BarcodeWidth = 0;

barcode.BarcodeHeight = 0;

Notice: if your setting is smaller than the barcode required minimum width and height, the library will automatically reset to barcode minimum width. Or you may enable AutoResize to automatically resize your MSI Plessey barcode image.

Barcode Margin

BarcodeMargin is the white zone around the MSI Plessey symbol. C# MSI Plessey barcode provides 4 options: Left Margin, Right Margin, Top Margin and Bottom Margin. The default of these four margins are 0 (float).

barcode.TopMargin = 3;

barcode.BottomMargin = 3;

barcode.LeftMargin = 1;

barcode.RightMargin = 1;

X & Y

X is the width of barcode bar module (narrow bar). The default in C# MSI Plessey barcode is 1 (float).

Y is the height of barcode bar module. The default in C# MSI Plessey barcode is 60 (float).

barcode.X = 2;

barcode.Y = 80;

Text Margin & Font

TextMargin is the space between barcode and barcode data text. The default in C# MSI Plessey barcode is 6 (float).

TextFont is the font style of human-readable text. The default in C# MSI Plessey barcode is new Font ("Arial", 9f, FontStyle.Regular).

barcode.TextMargin = 9;

barcode.TextFont = new Font("Arial", 20f, FontStyle.Regular);







OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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.