KA.Barcode for .NET Suite
How to Generate ISBN in C# Application
How to generate linear ISBN barcode images in C#, ASP.NET web applications, and windows forms

C# Barcode Generator: how to create, generate, print ISBN barcode image using c#.net









  • Easy-to-use & integrate ISBN creation controls completely written in managed C#
  • Simple integration into .NET applications to generate ISBN in Visual C#.NET class library
  • Generate ISBN barcodes in C# winforms, C#.NET web forms, C#.NET class & console applications
  • Draw & display ISBN barcodes in C#.NET Crystal Reports and Reporting Reports
  • Create and add supplement 2 & 5 digits barcode for ISBN barcodes
  • Draw and export high-quality ISBN barcodes for all printers and scanners
  • Compatible with GS1 system of standards for ISBN generations
  • Automatically add check digit for ISBN barcodes
ISBN C#.NET Generator is mature .NET barcode SDK for creating and printing high-quality ISBN barcodes within C#.NET programs. Written in Visual C#.NET, this generator supports ISBN generation in .NET framework 2.0/3.0/4.0 and Visual Studio 2005/2008/2010.
How to Add Barcode Images in Winforms Using C#.NET. How to generate barcodes in .NET Winforms applications using free C# .NET programming code. ....
Visual C#.NET. How to Generate Barcodes in RDLC Using C#.NET. ....
Visual Studio 2005; Visual C#.NET. 1D & 2D ....
more>
ISBN Introduction
ISBN is also known as International Standard Book Number, Bookland EAN, ISBN-13, ISBN-10, ISBN+5, ISBN+2, ISBN Supplement 5/Five-digit Add-On, ISBN Supplement 2/Two-digit Add-On, which is a unique identifier assigned to each edition of every published book and book-like product.
ISBN Encodable Character Set:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • 12 digits encodable, start with "978" or "979"
  • A check digit in the end
ISBN Valid Data Sets
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
ISBN Property Settings
Class Attribute HTTP Attribute Default Value Note
Basic
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.
ISBN Barcode Generation in C#.NET

How to Install ISBN Barcode for .NET Suite into your .NET Project

  1. 1.
    Download KA.Barcode Generator for .NET Suite and unzip;
  2. 2.
    Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference;
  3. 3.
    Click "Add Reference" in "project" and choose "Browse" in the pop-up window;
  4. 4.
    Locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll";
  5. 5.
    Click "OK"; now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.
Complete VB.NET source code to generate, print QR Code using Barcode Generator ....
Fully integrate with Microsoft Visual Studio 2005/2008/2010 & .NET Framework versions; Accurate 2D QR Code generation compatible with ISO / IEC...
In Visual Basic.NET, compatible with MS Visual Studio 2005/2008/2010; Comprehensive user manual to print, make 2-dimensional QR Code bar codes in...
more>

How to Generate ISBN in .NET Applications with C# Demo Code

using KeepAutomation.Barcode.Bean;

BarCode isbn= new BarCode();
isbn.Symbology = KeepAutomation.Barcode.Symbology.ISBN;

// Set ISBN valid encoding data: 12 numeric digits, stat with "978" or "979".
isbn.CodeToEncode = "978123456789";

// Apply checksum for ISBN barcode.
isbn.ChecksumEnabled = true;

// Display ISBN checksum in the human-readable text
isbn. DisplayChecksum = true;

// ISBN unit of measure, Pixel, Cm and Inch supported.
isbn.BarcodeUnit = BarcodeUnit.Pixel;

// ISBN image resolution in DPI.
isbn.DPI = 72;

// ISBN module bar width, ie. Width of the narrowest bar (X dimention), default is 1 pixel.
isbn.X = 3;

// ISBN module bar height (Y dimention)
isbn.Y = 60;

// ISBN margin size, a 10X space is automatically added according to specification.
isbn.LeftMargin = 0;
isbn.RightMargin = 0;
isbn.TopMargin = 0;
isbn.BottomMargin = 0;

// ISBN image orientation: 0, 90, 180, 270 degrees supported
isbn. Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// Display human readable text
isbn.DisplayText = true;
isbn.TextFont = new Font ("Arial", 10f, FontStyle. Regular);
isbn.TextMargin = 6;

// Print ISBN barcodes in Png, Jpeg, Gif, Tiff, Bmp, etc. image formats.
isbn.ImageFormat = ImageFormat.Png;

// Generate and save ISBN barcodes to image format
isbn.generateBarcodeToImageFile("C://barcode-isbn-csharp.gif");

// Create ISBN barcodes in Stream object
isbn.generateBarcodeToStream(".NET System.IO.Stream Object");

// Draw & Print ISBN barcodes to Graphics object
isbn.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

// Generate ISBN barcodes & write to byte[]
byte[] barcodeInBytes = isbn.generateBarcodeToByteArray();

// Generate ISBN barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = isbn.generateBarcodeToBitmap();

C# Demo Code to Generate Add-On Barcode for ISBN in .NET Applications

using KeepAutomation.Barcode.Bean;

BarCode isbn= new BarCode();
isbnsup2.Symbology = KeepAutomation.Barcode.Symbology.ISBNSup2;

// Set ISBN valid encoding data: 12 numeric digits, stat with "978" or "979".
isbn.CodeToEncode = "978123456789";

// Set ISBN add-on valid input: Arabic numeric 0-9. Length: 2-digit.
isbnsup2.SupplementCode = "12";

// Set ISBN add-on barcode height and space.
isbnsup2.SupplementHeight = 0.9;
isbnsup2.SupplementSpace = 20;

// Print ISBN barcodes in Png, Jpeg, Gif, Tiff, Bmp, etc. image formats.
isbn.ImageFormat = ImageFormat.Png;
isbn.generateBarcodeToImageFile("C://barcode-isbnsup2-csharp.gif");