VB.NET ISBN Generator Data Encoding Tutorial

sample source code to input valid data and generate linear ISBN images in VB.NET


 

ISBN VB.NET Generator Setup

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.

OnBarcode.com provides more details about how to set ISBN barcode size and image in Barcode Generator Control on VB.NET:


Codabar VB.NET Generator installation

1. Download the trial package and unzip

2. Copy OnBarcode.Barcode.WinForms.dll to your .NET project folder

3. Do not copy dll to .NET bin directory, .NET build tools will do it for you.

4. Add OnBarcode.Barcode.WinForms.dll to .NET project reference

5. Right click .NET Visual Studio Toolbox, select menu Choose Items...

6. In "Choose Toolbox Items" form, click button "Browse...", and select OnBarcode.Barcode.WinForms.dll

7. After selection, you will find four items under "Components" section: LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm

After, get it ready in VB.NET by placing the following statement where ISBN VB.NET Generator is needed:

Dim isbn As OnBarcode.Barcode.Linear

isbn = New OnBarcode.Barcode.Linear

isbn.Type = OnBarcode.Barcode.BarcodeType.ISBN

 

Valid length for Data in ISBN VB.NET Generator

ISBN Data Length

ISBN is a fixed length barcode symbology. There are 13 digits of numeric characters in an ISBN. The last digit of them is the prerequisite check digit. ISBN is publication symbology. The first three digits of data characters should be either "978" or "979".

Digits in ISBN VB.NET Generator

ISBN VB.NET Generator will automatically generate and calculate the check digit in ISBN basing on the string value you give to property Data. That is to say, using ISBN VB.NET Generator, you only have to place 12 digits of numeric characters in the string value of Data.

For example, if "978123456789" is to be encoded, there will be 13 digits on the image ("9781234567897"), the last digit ("7") is the check digit ISBN VB.NET Generator automatically generates and calculates for you.

Sample usage:

Dim isbn As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

isbn.Type = OnBarcode.Barcode.BarcodeType.ISBN

isbn.Data = "978123456789"

Sample image:



 

Data Character Set for ISBN VB.NET Generator

Encode Numeric Character in ISBN barcode image

The characters in ISBN are numeric. Only numbers 0 through 9 are valid for ISBN. The data encoded in the ISBN in your VB.NET project is defined by property Data. The value of Data is string value.

Sample usage:

isbn.Data = "978123456789"

Draw 2-digit add-on symbol in the image

According to its symbology specification and GS1 specification, a 2-digit add-on symbol could be used in ISBN beside its main barcode to supplement the data. When 2-digit add-on is needed, the type should be changed from ISBN to ISBN_2. Besides, supplement data should be given to property SupData, shown in following Sample usage.

Sample usage:

Dim isbn As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

isbn.Type = OnBarcode.Barcode.BarcodeType.ISBN_2

isbn.Data = "978123456789"

isbn.SupData = "12"

Sample image:



Encode 5 digits in ISBN Add-on

Similarly, 5-digit add-on symbol could be used in ISBN where 2-digit add-on could be placed to encode more supplement data.

Sample usage:

Dim isbn As OnBarcode.Barcode.Linear = New OnBarcode.Barcode.Linear

isbn.Type = OnBarcode.Barcode.BarcodeType.ISBN_5

isbn.Data = "978123456789"

isbn.SupData = "12345"

Sample image:











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.