C#. ISBN Generator Data Encoding Tutorial

Sample source code to input valid data and generate linear ISBN images in C# .NET


 

C# ISBN Introduction

ISBN, also known as International Standard Book Number, Bookland EAN, is a numeric-only linear barcode used extensively by publishers, retailers as wells as libraries to manage inventory.

C# ISBN barcode is one function of OnBarcode��s Barcode for .NET generation control, which provides an easy way for creating ISBN barcodes in Visual C#.NET programs by easily installing & integrating barcode ISBN generation library SDK into C# developments. High-quality ISBN images as well as ISBN+2 and ISBN+5 barcodes to jpeg, gif, png, tiff, bitmap files in C# program.

This document is providing a detailed C# source code about encoding ISBN, ISBN+2 as well as ISBN+5 barcodes in C#.NET class using C# Barcode generating component.

OnBarcode C# Barcode Generator is designed to generate, create ISBN and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# ISBN generation concerning size & image setting.



Encode ISBN Valid Character in C#.NET

ISBN valid character set:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Generate ISBN Barcodes in C#.NET

ISBN is a numeric-only linear barcodes. It only begins with "978" or "979".

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISBN;

barcode.Data = "978123456789";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn.png");

C# ISBN supports ISBN supplement 2-digit and 5-digit barcodes to be generated:

Create ISBN+2 Barcodes in C#.NET

ISBN+2 barcode is also known as ISBN supplement 2-digit barcode. It is a numeric-only linear barcode.

Linear barcode = new Li0near();

barcode.Type = BarcodeType.ISBN_2;

barcode.Data = "978123456789";

barcode.SupData = "12";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn_2.png);

Make ISBN+5 Barcodes in C#.NET

ISBN+5 is also called ISBN supplement 5-digit barcode. Like ISBN+2 barcode, ISBN+5 barcode is only to encode numeric data.

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISBN_2;

barcode.Data = "978123456789";

barcode.SupData = "12";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn_5.png);

Modify ISBN Valid Length in C#.NET

ISBN is a fixed-length linear barcode symblogy, with 12 digits to be encoded and plus 1 check digit.

Set ISBN Barcodes in 13-digit length

ISBN barcode is only to begin with "978" or "979". Arabic numeral can be encoded into 12 digits with a check digit in the end of data sequence.

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISBN_5;

barcode.Data = "979123456789";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn.png");

Make ISBN+2 Barcodes in 15-digit length

C# ISBN barcodes supports 2-digit supplemental data to add on, which indicates magazines and newspaper issue numbers. So the total length in ISBN+2 barcodes reaches at 15 digits, 12 of which are ISBN data; 2of which are supplemental data and 1of which is check digit.

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISBN_2;

barcode.Data = "979123456789";

barcode.SupData = "12";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn_2.png");

Print ISBN+5 Barcodes in 18-digit length

C# ISBN barcodes supports 5-digit supplemental data to add on, which marks suggested retail price of books. So the total length in ISBN+5 barcodes reaches at 18 digits, 12 of which are ISBN data; 5 of which are supplemental data and 1of which is check digit.

Linear barcode = new Linear();

barcode.Type = BarcodeType.ISBN_5;

barcode.Data = "979123456789";

barcode.SupData = "12345";

barcode.BarcodeWidth = 200;

barcode.Format = ImageFormat.Png;

barcode.drawBarcode("c:/isbn_5.png");









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.