KA.Barcode for .NET Suite
How to Generate ISBN in .NET Application
How to generate & create ISBN linear barcodes in ASP.NET, WinForms, C#, VB.NET class library
  • Generate ISBN barcodes in image files and byte stream objects in .NET
  • Add ISBN bar codes into windows applications, Crystal Reports, and SSRS
  • Create and stream dynamic ISBN Bookland barcodes in ASP.NET web site or web form, MS IIS
  • Programmatically add ISBN barcodes using Visual C#, VB.NET, managed C++, etc
  • Strong named assemblies for .NET Framework 2.0, 3.0, 3.5, & 4.0
  • Automatically add the checksum digit for ISBN linear barcode images
  • Allow the rotation of ISBN barcode images with 0, 90, 180, or 270 degrees
KA.Barcode for .NET Suite library SDK allows developers to add barcode image generation and printing capabilities into .NET Framework applications. The ISBN barcode generation functionality included in KA.Barcode for .NET Suite is robust and complete.
Linear ISBN Introduction
ISBN Symbology, short for International Standard Book Number, is used around the world as the identifier of commercial book. Almost every book published after 2007 had followed the usual ISBN procedure, and is marked with a unique ISBN.

ISBN Encodable Character Set

  • Numeric digits 0-9

ISBN Data Length

  • 12 digits
  • A mandatory check digit
  • Starting with 978 or 979
ISBN Generation in .NET Applications
Above all, please download KA.Barcode for .NET Suite and unzip.

How to Drag & Drop Barcode Control to Generate ISBN

  1. 1.
    Open your .NET Project with Visual Studio, and right-click "Choose Items..."
  2. 2.
    Browse and select "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll"
  3. 3.
    Add "BarCodeControl" to Visual Studio "Toolbox"
  4. 4.
    Drag and drop the "BarCodeControl" from the "Toolbox" onto your forms
  5. 5.
    Select the barcode on the form, switch to the Properties Window, and set "Symbology" property to "ISBN"

How to Generate ISBN in C#, VB.NET Class Library

Switch to the Visual Studio Solution Explorer window, and add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to as reference of the project. Then copy the following C# or VB.NET to where the ISBN is generated.
using KeepAutomation.Barcode.Bean;

BarCode isbn = new BarCode();
isbn.Symbology = KeepAutomation.Barcode.Symbology.ISBN;
isbn.CodeToEncode = "978123456789";
Dim isbn As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

isbn.Symbology = KeepAutomation.Barcode.Symbology.ISBN
isbn.CodeToEncode = "978123456789"

How to Generate ISBN with Supplement Barcode

Using integrated KA.Barcode for .NET Suite, a two-digit or five-digit supplement barcode can be added to an ISBN, thus more information could be encoded and displayed. The data, height as well as the space between the main and supplement barcode are customizable. To generate ISBN with supplement barcode in .NET, please copy the following code to your project:
Two-digit supplement barcode (ISBNSup2)
using KeepAutomation.Barcode.Bean;

BarCode isbnsup2 = new BarCode();
isbnsup2.Symbology = KeepAutomation.Barcode.Symbology.ISBNSup2;
isbnsup2.CodeToEncode = "978123456789";
isbnsup2.SupplementCode = "12";
isbnsup2.SupplementHeight = 0.8f;
isbnsup2.SupplementSpace = 15;
Dim isbnsup2 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

isbnsup2.Symbology = KeepAutomation.Barcode.Symbology.ISBNSup2
isbnsup2.CodeToEncode = "978123456789"
isbnsup2.SupplementCode = "12"
isbnsup2.SupplementHeight = 0.8
isbnsup2.SupplementSpace = 15
Five-digit supplement barcode (ISBNSup5)
using KeepAutomation.Barcode.Bean;

BarCode isbnsup5 = new BarCode();
isbnsup5.Symbology = KeepAutomation.Barcode.Symbology.ISBNSup5;
isbnsup5.CodeToEncode = "978123456789";
isbnsup5.SupplementCode = "12345";
isbnsup5.SupplementHeight = 0.8f;
isbnsup5.SupplementSpace = 15;
Dim isbnsup5 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

isbnsup5.Symbology = KeepAutomation.Barcode.Symbology.ISBNSup5
isbnsup5.CodeToEncode = "978123456789"
isbnsup5.SupplementCode = "12345"
isbnsup5.SupplementHeight = 0.8
isbnsup5.SupplementSpace = 15
Generate ISBN in Microsoft IIS
  1. 1.
    Copy the "barcode" folder from the unzipped folder to IIS web application folder
  2. 2.
    Create a virtual directory named "barcode", then link it to the "barcode" folder in web application folder
  3. 3.
    Testing: Open your web browser, and navigate to "http://localhost/barcode/barcode.aspx? code-to-encode =978123456789&symbology =18&x=1&barcode-width=150" (symboloy: ISBN=18, ISBNSup2=19, ISBNSup5=20)
  4. 4.
    Adding ISBN to web page: insert the following tag onto your web pages
    < img src="http://localhost/barcode/barcode.aspx? code-to-encode =978123456789&symbology =18&x=1&barcode-width=150/">
ISBN Property Settings
Class Attribute HTTP Attribute Default Value Note
Symbology symbology Code128Auto Barcode symoblogy type
CodeToEncode code-to-encode "128" Barcode value to encode.
ChecksumEnabled checksum-enabled false Set to true, adding barcode checksum digit.
ImageFormat image-format ImageFormat.Png Barcode encoded image format.
Barcode Size
AutoSizeAdjust auto-size-adjust false If true, barcode X, Y module will be auto-adjusted.
BarcodeUnit barcode-unit BarcodeUnit.Pixel Unit of measure for all size related settings. 0: pixel; 1: inch; 2: cm.
X x 1 Barcode module width (narrow bar).
Y y 50 Linear barcode bar height / 2D barcode module height.
LeftMargin left-margin 0 Barcode image left margin.
RightMargin right-margin 0 Barcode image right margin.
TopMargin top-margin 0 Barcode image top margin.
BottomMargin bottom-margin 0 Barcode image bottom margin.
DPI dpi 72 Barcode image resolution in dpi.
Orientation orientation Orientation.Degree0 Barcode rotation angle.
BarCodeWidth barcode-width 0 Whole barcode width.
BarCodeHeight barcode-height 0 Whole barcode height.
Barcode Text Style
DisplayText display-text true Set to true, displaying barcode value text, otherwise do not display.
DisplayChecksum displace-checksum true Set to true, displaying barcode checksum digit, otherwise do not display.
TextFont text-font new Font(" Arial", 10 f, FontStyle.Regular) Barcode text font style.
TextMargin text-margin 6 Margin between barcode and text.
ISBN Specific Settings
SupplementCode supplement-code - EAN, UPC, ISBN, or ISSN supplement barcode value to encode.
SupplementHeight supplement-height 0.8f EAN, UPC, ISBN, or ISSN supplement barcode height.
SupplementSpace supplement-space 15 EAN, UPC, ISBN, or ISSN supplement barcode space.