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

VB Imaging - RM4SCC Barcode Generation Tutorial


VB Tutorial and Codes for Creating RM4SCC Barcode in VB Imaging Application




VB Imaging - RM4SCC 1D Barcode Add-on Overview



This VB.NET RM4SCC barcode creator control add-on, developed in .NET Framework application, is designed to help VB.NET programmers create & add RM4SCC barcode on image formats, like png, jpeg, gif, bmp and tiff, and common document files, like PDF and Word in an extremely fast way. Besides, under the direct guidance of ISO/IEC specifications, this VB.NET RM4SCC barcode creator component toolkit is able to create industry standard RM4SCC barcodes that can be quickly and accurately read and decoded by most linear barcode scanners. remove password from pdf using c#, how to rotate pdf in c#, c# pdf stamper, how to crop a pdf in c#, vb.net docx to pdf, convert pdf to text using itextsharp in vb.net, vb.net change pdf metadata.


Related .net document control helps:
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
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 pdf editor component: 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 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 pdf editor component: 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#


RM4SCC is a linear postal barcode symbology used by the Royal Mail for Cleanmail service. It is also known as CBC (Customer Bar Code) within Royal Mail. RasterEdge Barcode Creator Library Plug-in, a consisting DLL of DocImage SDK for .NET, is a .NET control developed for barcode writing in VB.NET applications. Users can use this barcode generator to print RM4SCC barcode on image files such png, jpeg, gif, and bmp images, along with documents like PDF, Microsoft Office Word (docx file), Excel, PowerPoint and (multi-page) TIFF. asp.net mvc create pdf from view, asp.net display excel spreadsheet, asp.net core pdf preview, asp.net pdf viewer component, asp.net pdf editor control, how to add header and footer in pdf using itextsharp in asp.net, asp.net view tiff image.


Detailed features are listed below:


Main barcoding functions supported by RasterEdge VB.NET RM4SCC barcode creator SDK


How to create standard RM4SCC barcode on source image file using VB.NET code


How to add RM4SCC barcode image to multi-page TIFF, PDF or Word using VB.NET code


How to adjust each property of RM4SCC barcode on image using VB.NET code


Question on the installation of VB.NET RM4SCC barcode creator add-on


Robust .NET solution to help developers integrate fast RM4SCC barcode creating features into VB.NET developing platform


Create RM4SCC barcode on source image or document file at fast speed in VB.NET class application


Offer API for VB.NET programmers to auto resize created RM4SCC barcode on source document image file


Checksum character will be automatically added to RM4SCC barcode in VB.NET imaging application


Standard RM4SCC barcode with transparent background is also supported by this VB.NET barcode creator SDK


Linear RM4SCC barcode can be accurately inserted into defined area of target document image file using VB.NET


Offer flexible and royalty-free developer licenses with reasonable price




VB Code for Customizing RM4SCC Barcode Generation



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




'create a barcode
Dim barcode As Linear = New Linear()
'select barcode type
barcode.Type = BarcodeType.RM4SCC
'set barcode data
barcode.Data = "1234567ZC"
'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")





Create RM4SCC Barcode on Image using VB



This VB.NET barcode generating control enables developers to write and print a RM4SCC bar code on a png, gif, jpeg or bmp image file. To get it started, you can simply open your MS Visual Studio and create a new VB.NET imaging project, such as a Windows application, and then add the RasterEdge.Imaging.Barcode.Creator.dll to your project reference. Now you can copy the VB sample codes to your program to draw a RM4SCC barcode on a sample png image!




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





Draw RM4SCC Barcode on Document with VB



This barcode generator add-on component for VB.NET can also help users draw a RM4SCC on a commonly used document, like PDF, (multi-page) TIFF, Microsoft Office Word, Excel and PPT. You can decide which page you want to put the barcode on, and which area you want to paint it. In addition, you can have full control over RM4SCC barcode settings, like size, color, rotation, resolution, UOM, and so on. Please refer to the parameter section for more details.



RM4SCC Generation in PDF Processing Application



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




RM4SCC Generation in TIFF Processing Application



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




RM4SCC Generation in Word Processing Application



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 Code to Create RM4SCC Barcode on 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")




RM4SCC Creation on MS PowerPoint Slide in VB.NET



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





Entire VB Code for RM4SCC Barcode Generation



The VB code below contains all the parameters mentioned above. Please use it to customize barcode properties so that you can generate a desired RM4SCC on a image or document file.




'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.RM4SCC
'set barcode data 
barcode.Data = "1234567ZC"

'RM4SCC 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

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