C#: Online Guide
How To: Barcode Generator
ISBN
ISBN
  |  
Home ›› XImage.Barcode Generator ›› VB Barcode Generator: ISBN

VB Imaging - VB ISBN Barcode Tutorial


Create & Draw ISBN Barcode Image Using VB.NET Class Demo Code




Overview on VB ISBN Barcode Creating



This VB.NET ISBN barcode creator control add-on is often used in two main .NET imaging applications. One is for common image & picture processing application, which allows VB.NET developers to draw ISBN barcode on common image file formats, like png, jpeg, gif, bmp and tiff. The other is for daily document managing system, which allows VB.NET developers to add ISBN barcode image to document files, like PDF and Word documents. vb.net pdf merge, vb.net pdf merge and compress and resize, c# remove text from pdf, c# convert word to pdf, c# pdf preview image, c# make thumbnail of pdf, vb.net pdf library free.


Related .net document control helps:
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents


Before guiding you to create standard ISBN barcode on source image or document file, we will first briefly introduce the linear barcode symbology itself. ISBN, short for International Standard Book Number, can only encode digit characters 0-9. Besides, according to the international specifications, a valid ISBN barcode should start with "978" or "979" only and consist of 13 digits, including the check digit that will be automatically computed and added by this VB.NET ISBN barcode creator add-on. asp.net display excel spreadsheet, pdf editor asp.net, asp.net pdf viewer control c#, pdf preview in asp net c# example, open word document in asp.net c#, asp net replace text fro pdf free, mvc show pdf in div.


RasterEdge DocImage Barcode Add-On SDK for .NET contains several DLLs / libraries to meet multiple image processing and manipulation needs, among which barcode reading and writing abilities are included. The RasterEdge.Imaging.Barcode.Creator.dll allows VB developers to easily generate ISBN linear barcode on images (supported image formats: GIF, BMP, PNG & JPEG) and documents (supported documents: PDF, TIFF, Excel, PowerPoint & Word).


Detailed features are listed below:


Easy to use .NET solution that is designed to create ISBN barcode on image or document file using VB.NET code


Automatically compute and add check digit for ISBN barcode in VB.NET imaging application


Support generating transparent ISBN barcode image on document files in VB.NET like PDF & Word


Free to add high-quality ISBN barcode to common raster image formats using VB.NET code


Created ISBN barcode can be easily resized, repositioned and reoriented on source document image file in VB.NET


Support other linear and 2d barcodes on document image file, like Code 39, UPC-A and PDF 417


Created ISBN barcode can be accurately decoded by .NET barcode reader or other barcode scanners




VB Code for Customizing ISBN Barcode Generation



You can easily generator ISBN barcode and save it  to image files/object using this VB.NET barcode generator control. The following steps will show how to create a ISBN type barcode encoding numeric data text "978047082163" into the image object with XImage.Barcode.Creator.


Add References


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XImage.BarcodeCreator.dll


  System.Drawing.dll


Using Namespaces


  using System.Drawing;


  using RasterEdge.XImage.BarcodeCreator;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.



Please copy the sample code as follow to generator a ISBN barcode.




'create a barcode
Dim barcode As Linear = New Linear()
'select barcode type
barcode.Type = BarcodeType.ISBN
'set barcode data
barcode.Data = "978047082163"
'set x,y position
barcode.X = 1.0F
barcode.Y = 60.0F
'set resolution
barcode.Resolution = 96
'set rotation
barcode.Rotate = Rotate.Rotate0
barcode.BarcodeWidth = 200
barcode.BarcodeHeight = 200
barcode.AutoResize = true

'convert barcode to a bitmap and save it to image file
'Bitmap bmp = barcode.ToImage()
'bmp.Save(@"C:\barcode.bmp")





Create ISBN Barcode on VB Program Image



RasterEdge barcode generator add-on control library supports creating / writing ISBN (International Standard Book Number) in VB project & program. Displayed below is the Visual VB demo code to create an ISBN encoding "978047082163" on a sample png image, and save it to your local disk C. You can also change the sample image to a jpeg, gif or bmp image.




Dim image As REImage  = New REImage("C:\\Sample.png")
barcode.DrawBarcode(image, 150F, 150F)
image.Save(ImageType.PNG, "C:\\Sample_Barcode.png")





Generate ISBN on VB Document Page



Besides the image formats listed above, RasterEdge .NET barcode generator component can also create and print ISBN on these files: PDF, TIFF, Microsoft Office Word / docx document, Excel and PowerPoint. Five samples are provided below for ISBN barcode writing on each of these five documents.


Some simple barcode settings are offered in the codings and you can also make more adjustments with the properties from the table in the following section. Besides, VB.NET users can freely control the specific location of ISBN barcode on sample image by setting x and y coordinates using VB.NET programming language.



ISBN Writing on Certain PDF Document Area



Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PDF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;



Dim  docx As PDFDocument = New PDFDocument("C:\\Sample.pdf")
Dim  page As PDFPage = docx.GetPage(0)
Dim  image As Bitmap = barcode.ToImage() 'Define on the above code
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pdf")




ISBN Printing on Certain TIFF Page



Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.TIFF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.TIFF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As TIFFDocument = New TIFFDocument("C:\\Sample.tif")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.tif")




ISBN Drawing on Word Document



Add References(Extra)


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Word;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As DOCXDocument = New DOCXDocument("C:\\Sample.docx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.docx")




ISBN Barcode Writing on Excel Sheet



Add References(Extra)


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Excel;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As XLSXDocument = New XLSXDocument("C:\\Sample.xlsx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.xlsx")




ISBN Barcode Creating on PowerPoint Slide



Add References(Extra)


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PowerPoint;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As PPTXDocument = New PPTXDocument("C:\\Sample.pptx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pptx")





VB Code to Create ISBN in .NET Project



Here is the Visual VB demo code with the complete ISBN barcode settings listed in the above property table. Please copy it to your VB.NET imaging program for ISBN barcode drawing.




'create REImage on which you want to draw the barcode
Dim reImage As REImage = New REImage("c:/Sample.png")

'create a barcode
Dim barcode As Linear  = New Linear()
'select barcode type
barcode.Type = BarcodeType.ISBN
'set barcode data 
barcode.Data = "978047082163"

'ISBN barcode size related
'set x,y position
barcode.X = 1.0F
barcode.Y = 60.0F
barcode.BarcodeHeight = 60
barcode.BarcodeWidth = 0
barcode.BottomMargin = 0
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.BarAlignment = AlignmentHori.Center
'set resolution
barcode.Resolution = 72
'set rotation
barcode.Rotate = Rotate.Rotate0
barcode.AddCheckSum = false
barcode.UOM = UnitOfMeasure.PIXEL;

'ISBN colors
barcode.BackColor = System.Drawing.Color.White
barcode.ForeColor = System.Drawing.Color.Black

'ISBN font style
barcode.TextFont = New Font("Arial", 9f, FontStyle.Regular)
barcode.TextColor = System.Drawing.Color.Black
barcode.TextMargin = 6
barcode.ShowText = true

barcode.TopTextColor = System.Drawing.Color.Black
barcode.TopTextFont = New Font("Arial", 9f, FontStyle.Regular)

'ISBN special
'barcode.SupData = ""
'barcode.SupHeight = 0.8f
'barcode.SupSpace = 15f

'draw barcode on REImage with location x and y
barcode.DrawBarcode(reImage, 0, 0)

reImage.Save(ImageType.PNG, "c:/barcode.png")