VB Imaging - Interleaved 2 of 5 Generator Tutorial
Interleaved 2 of 5 Creation on Image and Document Using VB.NET Code
VB Imaging - Interleaved 2 of 5 Creating Overview
Interleaved 2 of 5 Barcode Generator Add-on for VB.NET has two main functions. One is to create and draw Interleaved 2 of 5 barcode on common image file formats. The other is to generate and add Interleaved 2 of 5 barcode image on common document files page. RasterEdge Interleaved 2 of 5 VB barcode creator add-on offers easy-to-use and mature APIs for VB developers to generate a customized Interleaved 2 of 5 barcode and draw created barcode on both raster image files and common documents in .NET developing platforms, without using other external barcode related third-party software.
c# rotate pdf document,
c# determine number of pages in pdf,
vb.net pdf viewer open source,
edit pdf vb.net,
pdf to jpg vb.net,
convert pdf to text using itextsharp in vb.net,
c# draw pdf.
Related .net document control helps:
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net annotate pdf control:
ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net sharepoint document viewer control: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# 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...
asp.net view text file in browser: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
VB.NET Image Interleaved 2 of 5 barcode creating control is a mature and robust linear barcode component to generate Interleaved 2 of 5 barcode on PNG, BMP, GIF & JPEG images and TIFF, PDF & Word document files in high performance. Besides VB.NET Windows application, this VB.NET Interleaved 2 of 5 Barcode Generator also entitles users to install and apply Interleaved 2 of 5 barcode component within VB ASP.NET web project. Compared to other VB.NET Interleaved 2 of 5 barcode generating SDKs on the market, this VB.NET Barcode Creator Add-on successfully stands itself out based on its outstanding Interleaved 2 of 5 barcode generating features.
how to add header and footer in pdf using itextsharp in asp.net,
asp.net pdf viewer,
display image asp.net,
pdf viewer in mvc 4,
open word document in asp.net c#,
pdf editor asp.net,
pdf preview in asp.net c#.
Compatible with .NET 2.0 and advanced versions and can be integrated into all Visual Studio versions
Generate and add Interleaved 2 of 5 barcode in gif, png, bmp, jpeg and tiff images with high efficiency
Write and individualize Interleaved 2 of 5 barcode on PDF and MS Word documents in VB.NET
VB.NET Imaging Processing and Editing tool supports pre-processing target image or document page
Provide complete and flexible Interleaved 2 of 5 barcode sizing options enable VB users to set
Simple VB code to adjust Interleaved 2 of 5 barcode foreground and background colors in VB.NET
Competent to incorporate .NET Imaging Saving and Printing funtions within VB.NET Interleaved 2 of 5 barcoding application
All created Interleaved 2 of 5 barcode graphics can be printed by almost all printers with high speed and high quality
VB Code for Customizing Interleaved 2 of 5 Barcode Generation
You can easily generator Interleaved 2 of 5 barcode and save it to image files/object using this VB.NET barcode generator control. The following steps will show how to create a Interleaved 2 of 5 type barcode encoding numeric data text "01234567890123456789" 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 Interleaved 2 of 5 barcode.
'create a barcode
Dim barcode As Linear = New Linear()
'select barcode type
barcode.Type = BarcodeType.INTERLEAVED25
'set barcode data
barcode.Data = "112233445566"
'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")
|

|
|
Draw Interleaved 2 of 5 Barcode on Image in VB
In this section, we will give you a VB programming example on how to create Interleaved 2 of 5 barcode and insert created barcode on target image file. Supported image file formats are PNG, JPEG, GIF and BMP. Using this VB.NET Interleaved 2 of 5 barcode creator add-on, you can insert created barcode into specified area of your loaded image file.
Dim image As REImage = New REImage("C:\\Sample.png")
barcode.DrawBarcode(image, 150F, 150F)
image.Save(ImageType.PNG, "C:\\Sample_Barcode.png")
|
Draw Interleaved 2 of 5 on Document Page in VB
Using RasterEdge VB Interleaved 2 of 5 barcode creator SDK, you can also create and add standard Interleaved 2 of 5 barcode to document page using VB.NET programming. Supported document types are Word, Excel, PowerPoint, PDF and TIFF.
VB Interleaved 2 of 5 Creation on PDF Document
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")
|
VB Interleaved 2 of 5 Creation on TIFF File 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")
|
VB Interleaved 2 of 5 Creation 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")
|
VB Interleaved 2 of 5 Barcoding 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")
|
VB Interleaved 2 of 5 Barcode Writing on PowerPoint
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 Demo Code for Interleaved 2 of 5 Customization
The following VB code demo contains all the APIs that you can use to create and customize Interleaved 2 of 5 barcode on documents and image files in .NET applications.
'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.INTERLEAVED25
'set barcode data
barcode.Data = "112233445566"
'Interleaved 2 of 5 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
'Interleaved 2 of 5 colors
barcode.BackColor = System.Drawing.Color.White
barcode.ForeColor = System.Drawing.Color.Black
'Interleaved 2 of 5 font style
barcode.TextFont = New Font("Arial", 9f, FontStyle.Regular)
barcode.TextColor = System.Drawing.Color.Black
barcode.TextMargin = 6
barcode.ShowText = true
'Interleaved 2 of 5 special
barcode.N = 2.0f
'draw barcode on REImage with location x and y
barcode.DrawBarcode(reImage, 0, 0)
reImage.Save(ImageType.PNG, "c:/barcode.png")
|