C#: Online Guide
How To: Barcode Generator
ITF-14
ITF-14
  |  
Home ›› XImage.Barcode Generator ›› VB Barcode Generator: ITF-14

VB Imaging - Linear ITF-14 Barcode Generator


VB Code for ITF-14 Barcode Image Generation in .NET Application




VB Image - ITF-14 Barcode Creating Add-on Overview



RasterEdge .NET Image Barcode Add-on SDK provides VB.NET developers with the award-winning ITF-14 barcode generating component which shows advanced ability to generate ITF-14 barcode on images and documents. RaseterEdge ITF-14 Barcode Generator can be integrated within a wide range of .NET environments so that users are able to produce and specify for ITF-14 generating in C#.NET and ASP.NET. You may see details from pages: ITF-14 on document image in C#.NET and create linear ITF-14 barcode within ASP.NET imaging application.


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 dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
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#


VB.NET document image barcode generator for ITF-14 is completely compatible within VB.NET class and console libraries. With this easy to configure ITF-14 barcoding toolkit, users are entitled with great abilities to adjust all the related barcode parameters to fulfill requirements, such as barcode basic data, variable barcode sizes and attaching text font style, etc. In addition, after the creation of ITF-14 barcode image, more image viewing, processing, saving and printing options are available by using VB.NET imaging class control.


Easy to integrate ITF-14 Barcode Creator into Windows application in VB programming class


ITF-14 barcoding toolkit is completely compatible with both 32-bit and 64-bit Windows operating systems


Spend a few seconds creating ITF-14 barcode in Visual Studio 2005, 2008, 2010 or greater versions


JPEG, PNG, GIF, Bitmap and TIFF images are supported when add and define ITF-14 barcode on image


Great capabilities to generate ITF-14 barcode on PDF and MS Word documents in VB.NET


Easy to locate the position on document image for creating ITF-14 barcode image


Advanced VB barcode writing SDK supports four kinds of barcode orientations, including 0, 90, 180 and 270 degrees


Free to choose to store the generated ITF-14 image as independent graphics or with the original document image


More high performance linear or 2D barcodes generating libraries for VB.NET project




VB Code for Customizing ITF-14 Barcode Generation



You can easily generator ITF-14 barcode and save it  to image files/object using this VB.NET barcode generator control. The following steps will show how to create a ITF-14 type barcode encoding numeric data text "0123456789012" 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 ITF-14 barcode.




'create a barcode
Dim barcode As Linear = New Linear()
'select barcode type
barcode.Type = BarcodeType.ITF14
'set barcode data
barcode.Data = "0123456789012"
'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
'Dim bmp As Bitmap = barcode.ToImage()
'bmp.Save("C:\\barcode.bmp")





VB Image - Create ITF-14 Barcode on Image File



This VB.NET barcode generator dll supports users generating & inserting ITF-14 barcode at specified area of Png, Gif, Jpeg and Bmp images by using VB.NET class code. In addition, users are able to set all ITF-14 barcode properties to generate a satisfactory ITF-14 barcode image.




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





VB Image - Create ITF-14 Barcode on Document File



Using this ITF-14 barcode creator add-on for VB.NET, users can select a page from multi-page document file and generate a standard ITF-14 barcode at a specified area of that selected page within VB.NET class application. The supported document files are PDF, TIFF, Word, Excel and PowerPoint. What's more, if you want to personalize ITF-14 barcode image, you are able to adjust the barcode parameters to your desired values. Main relative parameters include: ITF-14 bar module width & height, barcode width & height, multiple margin data, barcode fore & back color and font style.



VB Demo Code to Create ITF-14 in Certain PDF Page 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")




Create ITF-14 Barcode in Specific TIFF Page in VB



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")




Draw ITF-14 Barcode on Microsoft 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")




Generate ITF-14 Barcode on Microsoft Excel Document



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")




Draw ITF-14 Barcode on Microsoft PowerPoint Document



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 Image - Entire VB Code to Generate ITF-14 Barcode



Following VB sample code is used to generate a standard ITF-14 barcode on a png image file. From the VB code, you can find many ITF-14 barcode imaging-related parameters, which are free to be adjusted to meet your own ITF-14 barcoding requirement.




'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.ITF14
'set barcode data 
barcode.Data = "0123456789012"

'ITF-14 size settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 2.0F
barcode.Y = 80F
barcode.BarcodeHeight = 120
barcode.BarcodeWidth = 120
barcode.BottomMargin = 20
barcode.TopMargin = 20
barcode.BottomMargin = 20
barcode.LeftMargin = 20
barcode.RightMargin = 20
barcode.AutoResize = false
barcode.BarAlignment = AlignmentHori.Center

'ITF-14 unique settings
'set the ratio value of wide bar to narrow bar
barcode.N = 2F
barcode.BearerBarHori = 2
barcode.BearerBarVert = 2

'color related settings
barcode.BackColor = System.Drawing.Color.White
barcode.ForeColor = System.Drawing.Color.Black

'human-readable text related settings
barcode.ShowText = true
barcode.TextFont = New Font("Arial", 9f, FontStyle.Regular)
barcode.TextMargin = 6F
barcode.TextColor = System.Drawing.Color.Black

'other related settings
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0

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

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