VB Imaging - VB Code 39 Barcoding Tutorial
Draw Code 39 Barcode on Raster Images, TIFF, PDF, Word, Excel and PowerPoint
VB Imaging Code 39 Barcode Add-on Overview
VB.NET Barcode Creator Add-on from .NET Imaging SDK not only owns mature & advanced linear Code 39 barcode generating features but also combines Code 39 creating functions with common image and document processing technologies.
asp.net core pdf preview,
asp.net tiff viewer,
c# asp.net pdf viewer,
asp net mvc 5 pdf viewer,
asp.net itextsharp add image to pdf,
asp.net pdf writer,
asp net replace text fro pdf free.
To put it in another way, using this VB.NET Code barcode creator control add-on, developers can easily and accurately insert and draw an industry standard Code 39 linear barcode into target image files or documents for VB.NET applications. RasterEdge DocImage SDK for .NET includes this RasterEdge.Imaging.Barcode.Creator.dll for VB developers to generate and create Code 39 on TIFF, PDF, Word, Excel and PowerPoint documents and raster image files using VB class codes. With the sample codes demonstrated below, users can freely create and print Code 39 bar codes on any page within TIFF, PDF, Excel, PowerPoint or Word file, and at any location on a Jpeg, Gif, Png, or Bmp image. And below are the main features.
convert doc to pdf vb.net,
c# pdf stamper,
convert pdf page to bitmap c#,
c# itextsharp pdfcontentbyte add image,
c# extract pdf page as image,
how to redact a pdf in c#,
c# remove images from pdf.
Related .net document control helps:
asp.net multipage tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net document viewer control:
EdgeDoc:ASP.NET Document Viewer C# Control:
Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
Easy to insert Code 39 barcode into png, jpeg, gif, bmp and tiff image file formats using VB.NET code
Able to create Code 39 barcode image on defined page of source PDF or Word document file using VB.NET
Allow VB.NET developers to decide where linear Code 39 barcode should be added
Created Code 39 barcodes are compatible with industry standards and international barcode specifications
Suitable for VB.NET programmers who has little or no knowledge about this linear Code 39 barcode symbology
VB Code for Customizing Code 39 Barcode Generation
You can easily generator Code39 barcode and save it to image files/object using this VB.NET barcode generator control. The following steps will show how to create a Code39 type barcode encoding numeric data text "0123456ABCD" 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 Code39 barcode.
'create a barcode
Dim barcode As Linear = New Linear()
'select barcode type
barcode.Type = BarcodeType.CODE39
'set barcode data
barcode.Data = "0123456ABCD"
// 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 Code 39 on Raster Image in VB Project
With the following Visual VB demo code, you are able to generate Code 39 on raster image files, including BMP, PNG, GIF, and JPEG formats. Below are some basic settings for Code 39. For more dimension settings, please refer to the complete property table below. You will be able to adjust barcode location on image, and control Code 39 size, resolution, checksum, orientation, color, and text, etc.
Dim image As REImage = New REImage("C:\\Sample.png")
barcode.DrawBarcode(image, 150F, 150F)
image.Save(ImageType.PNG, "C:\\Sample_Barcode.png")
|
Generate Code 39 on Certain Document Page
This section will demonstrate how to generate & embed Code 39 on PDF, multi-page TIFF, Microsoft Office Word document (.docx), Excel sheet (.xlsx) and PowerPoint (.pptx). Visual VB users can draw it at any location of document page, and adjust Code 39 parameters freely.
Write VB Code 39 on Defined Area in 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")
|
Create VB Code 39 on Multi-page TIFF Document
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 VB Code 39 on Office 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")
|
Write VB Code 39 Image 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")
|
Create VB Code 39 Barcode 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")
|
Generate Code 39 with VB Code
RasterEdge offers free and accurate VB example code to create customized Code 39 on image and document files, by adjusting the properties listed above.
'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.CODE39
'set barcode data
barcode.Data = "0123456ABCD"
'Code 39 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.Left
'set resolution
barcode.Resolution = 72
'set rotation
barcode.Rotate = Rotate.Rotate0
barcode.AddCheckSum = false
barcode.UOM = UnitOfMeasure.PIXEL
'Code 39 colors
barcode.BackColor = System.Drawing.Color.White
barcode.ForeColor = System.Drawing.Color.Black
'Code 39 font style
barcode.TextFont = New Font("Arial", 9f, FontStyle.Regular)
barcode.TextColor = System.Drawing.Color.Black
barcode.TextMargin = 6
barcode.ShowText = true
'Code 39 special
barcode.I = 1.0f
barcode.N = 2.0f
barcode.ShowStartStopInText = true
barcode.ProcessTilde = false
'draw barcode on REImage with location x and y
barcode.DrawBarcode(reImage, 0, 0)
reImage.Save(ImageType.PNG, "c:/barcode.png")
|