C#. ISSN Generator Data Encoding Tutorial
Sample source code to input valid data and generate linear ISSN images in C# .NET
C# ISSN Introduction
ISSN, also known as International Standard Serial Number, is a numeric-only linear barcode used for identifying periodical publications such as magazines.
C# ISSN barcode is an easy- to- install .NET barcode generating SDK, which requires minimum ISSN barcode knowledge. It supports to be used in any development environment supported by Visual C#.NET Framework, and compatible with the latest development toolkit Microsoft Visual Studio. ISSN+2 and ISSN+5 barcode are also supported.
This document provides 100% C# source code to explain how to encode ISSN, ISSN+2 and ISSN+5 valid data with .NET Barcode suite using C# class.
OnBarcode C# Barcode Generator is designed to generate, create ISSN and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# ISSN generation concerning size & image setting.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Encode ISSN Valid Character in C#.NET
ISSN valid character set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Generate ISSN Barcodes in C#.NET
ISSN is a numeric-only linear barcodes.
Linear barcode = new Linear();
barcode.Type = BarcodeType.ISSN;
barcode.Data = "123456789";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn.png");
C# ISSN supports ISSN supplement 2-digit and 5-digit barcodes to be generated:
Create ISSN+2 Barcodes in C#.NET
ISSN+2 barcode is also known as ISSN supplement 2-digit barcode. It is a numeric-only linear barcode.
Linear barcode = new Li0near();
barcode.Type = BarcodeType.ISSN_2;
barcode.Data = "123456789";
barcode.SupData = "12";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn_2.png);
Make ISSN+5 Barcodes in C#.NET
ISSN+5 is also called ISSN supplement 5-digit barcode. Like ISSN+2 barcode, ISSN+5 barcode is only to encode numeric data.
Linear barcode = new Linear();
barcode.Type = BarcodeType.ISSN_2;
barcode.Data = "123456789";
barcode.SupData = "12";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn_5.png);
Modify ISSN Valid Length in C#.NET
ISSN is a fixed-length linear barcode symblogy. In total, ISSN is a 13-digit length barcode; however, we encode 9 digits only, the barcode library will add "977" in the beginning and 1 check digit in the end
Set ISSN Barcodes in 13-digit length
Arabic numeral can be encoded into 9 digits with "977" in the beginning and a check digit in the end of data sequence.
Linear barcode = new Linear();
barcode.Type = BarcodeType.ISSN_5;
barcode.Data = "123456789";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn.png");
Make ISSN+2 Barcodes in 15-digit length
C# ISSN barcodes supports 2-digit supplemental data to add on, which indicates magazines and newspaper issue numbers. So the total length in ISSN+2 barcodes reaches at 15 digits, 12 of which are ISSN data; 2of which are supplemental data and 1of which is check digit.
Linear barcode = new Linear();
barcode.Type = BarcodeType.ISSN_2;
barcode.Data = "123456789";
barcode.SupData = "12";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn_2.png");
Print ISSN+5 Barcodes in 18-digit length
C# ISSN barcodes supports 5-digit supplemental data to add on, which marks suggested retail price of books. So the total length in ISSN+5 barcodes reaches at 18 digits, 12 of which are ISSN data; 5 of which are supplemental data and 1of which is check digit.
Linear barcode = new Linear();
barcode.Type = BarcodeType.ISSN_5;
barcode.Data = "123456789";
barcode.SupData = "12345";
barcode.BarcodeWidth = 200;
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("c:/issn_5.png");