Output barcode screenshot (Royal Mail symbology)

Royal Mail barcode sample

Royal Mail barcode (Also known as RMS4CC, RoyalMail4SCC, Royal Mail 4-State, British Royal Mail 4-State Customer Code, 4-State). This symbology was created for automated mail sorting. It normally codes the postcode and the house or mailbox number in a machine readable format. The contents of the code may vary in different countries. This symbology encodes alpha-numeric characters (0-9, A-Z).

Important: you can also use BarCode Windows Forms or Web ImageControl instead. To use the Windows Formscontrol in Visual Studio please open Toolbox and open “Bytescout Software” tab and drag-n-drop “BarCode” control into your WinForms or ASP.NET application (in design mode)

The video tutorial how to make Royal Mail barcode

Visual Basic:

Imports Bytescout.BarCode

Module Module1

Sub Main()
‘ Create new barcode
Dim barcode As New Barcode()

‘ Set symbology
barcode.Symbology = SymbologyType.RoyalMail

‘ Set value
barcode.Value = “testingRoyalMail

‘ Save barcode to image
barcode.SaveImage(“result.png”)

‘ Show image in default image viewer
Process.Start(“result.png”)
End Sub

End Module

C#:

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

using Bytescout.BarCode;

namespace Sample
{
class Program
{
static void Main(string[] args)
{
// Create new barcode
Barcode barcode = new Barcode();

// Set symbology
barcode.Symbology = SymbologyType.RoyalMail;

// Set value
barcode.Value = “testingRoyalMail“;

// Save barcode to image
barcode.SaveImage(“result.png”);

// Show image in default image viewer
Process.Start(“result.png”);
}
}
}