VB.NET ISBN Generator Size Setting Tutorial
sample source code to generate linear ISBN images and adjust barcode size in VB.NET
- VB.NET developer tool
- Automatically calculate and generate the check digit in ISBN
- Draw supplement barcode
- Set the height of supplement bars based on the height of bars in main barcode
- Easy to set the space between add-on symbol and main barcode
- Easy to create high quality ISBN Png, Gif, Jpeg, Tiff, or Bmp files
- Set the width and height of the module bar
- Support the width setting of surrounding margins
- Support the width and height setting of the whole ISBN image
- Easy to set the space between main barcode and supplement barcode
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.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
ISBN Symbology Structure
W: the width of ISBN barcode image, including quiet zones, controlled by property BarCodeWidth
X (X ≥ 1 pixel): the width of ISBN narrowest bar, controlled by property X
C: the number of ISBN encoded data characters, including the check digit; C =12
Q (Q ≥ 10X): the width of the quiet zone, related to property LeftMargin & RightMargin
More information about ISBN barcode settings in VB.NET Barcode Generator,please see:
ISBN VB.NET Generator Size Setting Tutorial
After ISBN VB.NET Generator installation, get it ready in VB.NET by placing the following statement:
Dim isbn As OnBarcode.Barcode.Linear
isbn = New OnBarcode.Barcode.Linear
isbn.Type = OnBarcode.Barcode.BarcodeType.ISBN
If supplement barcode is needed, please select ISBN_2 or ISBN_5 instead of ISBN. Please remember to add string value to property SupData.
SupHeight & SupSpace
The height of the supplement barcode is controlled by property SupHeight (Type: Float; Default: 0.8).The space between the main barcode and the supplement barcode is set by property SupSpace (Float; Default: 15 pixels).
Sample usage:
isbn.SupHeight = 0.7
isbn.SupSpace = 10
UOM
UOM is the controller of size setting unit. Pixel, Cm, and Inch are provided as its options. The default value of UOM is Pixel. For example, type the following statement to select Pixel as the unit of size setting measure:
isbn.UOM = OnBarcode.Barcode.UnitOfMeasure.PIXEL
X & Y
Property X (Type: Float; Default: 1) and Property Y (Type: Float; Default: 60) are used in ISBN barcode symbol size setting. X is for the module width setting (supplement barcode included), and Y controls the height of the bar.
Sample usage:
isbn.X = 2
isbn.Y = 70
BarCodeHeight & BarCodeWidth
Property BarCodeHeight (Type: Float; Default: 0) and Property BarCodeWidth (Type: Float; Default: 0) to set the size of the whole image.
Sample usage:
isbn.BarcodeHeight = 60
isbn.BarcodeWidth = 175
AutoResize
When the value of X, Y, BarCodeWidth, and BarCodeHeight conflict with each other, Property AutoResize (Type: bool; Default: False) should be enabled to solve the problem and make the ISBN 100% compatible with its symbology specification. See ISBN Barcode Size in VB.NET to know more usage of AutoResize.
Sample usage:
isbn.X = 2
isbn.BarcodeHeight = 60
isbn.AutoResize = True
TopMargin, BottomMargin, LeftMargin, & RightMargin
Using ISBN VB.NET Generator, a quiet zone with 10X width will be generated automatically at each side of the ISBN. When wider quiet zone is needed, you can increase the value of properties LeftMargin (Type: Float; Default: 0) and RightMargin (Type: Float; Default: 0). You can also create margins using TopMargin (Type: Float; Default: 0) and BottomMargin (Type: Float; Default: 0).
Sample usage:
isbn.TopMargin = 10
isbn.BottomMargin = 10
isbn.LeftMargin = 10
isbn.RightMargin = 10
TextMargin
Human readable text are required in almost every linear barcode symbology. Property TextMargin (Type: Float; Default: 6 pixel) is used to set the space between ISBN bar code and the human readable text below the barcode.
Sample usage:
isbn.TextMargin = 10