logo
small logo
  • Products
  • Buy
  • Support
  • Articles
  • Customer panel Support
    • en
    • pt
    • es
    • de
    • pl
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • How to create a Japanese Post 4-State Code barcode in FastReport .NET
  • Creating and outputting ITF-14 barcodes in .NET applications

    February 25, 2021

    ITF-14 (Interleaved Two of Five) is a two-band numeric code, otherwise known as a high-density

    read more
  • How to set up the LOGMARS barcode in FastReport .NET

    September 6, 2021

    LOGMARS stands for Logistics Applications of Automated Marking and Reading Symbols. It is a specification

    read more
  • How to create a Code-128 barcode (A, B, C) in your application

    December 22, 2021

    CODE 128 is the barcode developed by Computer Identics Corporation (U.S.A.) in 1981. CODE

    read more
  • GS1 Databar barcodes in FastReport .NET

    December 6, 2021

    We have added the following barcodes: – GS1 Databar Limited; – GS1 Databar Omnidirectional; – GS1 Databar

    read more
  • How to create QR code with a picture

    January 9, 2019

    It's no longer a novelty to see a pixel QR barcode on the product packaging.

    read more

How to create a Japanese Post 4-State Code barcode in FastReport .NET

September 3, 2021

Japanese Post was created for the Japanese postal system for the sake of encoding mail addresses and faster automatic processing.

The Japan Post Barcode encodes a 7-digit postal code plus an optional address data of up to 13 alphanumeric characters. The postal code section may have a hyphen char at the 4th character position (e.g., 108-0075) although this hyphen will not be encoded into the barcode. There may also be a hyphen between the postal code and the address data (e.g., 108-0075-2-16-3). Again, this hyphen will not be encoded into the barcode. Any remaining hyphens are encoded, though.
This symbology supports the following alphanumeric characters:

- All numeric digits (0-9)
- All uppercase letters (A-Z)
- Hyphen (-)

Example of Japanese Post 4-State Code

To correctly position a Japanese Post barcode, it must be printed parallel to one edge of the piece of mail either horizontally or vertically. The barcode must also be within the following margins:

- No less than 10 mm from the top or side edges of the piece of mail
- No less than 15 mm from the bottom edge of the piece of mail

The preferred position of the barcode is below the written address if horizontal. If the address is vertical, the barcode can be printed to the right, to the left, or at the bottom of the address.

Creating a Japanese Post 4-State Code using the code:

//Create a new report object
Report report = new Report();
//Create a report page
ReportPage page = new ReportPage();
//Create a unique name
page.CreateUniqueName();
//Add it to the collection of report pages
report.Pages.Add(page);
//Create a new DataBand
 DataBand dataBand = new DataBand();
//With a unique name
 dataBand.CreateUniqueName();
//And add it to the band collection
page.Bands.Add(dataBand);
//Create a barcode object
FastReport.Barcode.BarcodeObject barcode = new FastReport.Barcode.BarcodeObject();
//Set a barcode type
barcode.Barcode = new FastReport.Barcode.BarcodeJapanPost4StateCode();
//Set the numeric combination for encoding
barcode.Text = "597-8615-5-7-6";
//Place the barcode on the page
barcode.Parent = dataBand;
 //Set the size of the object
barcode.Bounds = new RectangleF(0, 0, Units.Centimeters * 10, Units.Centimeters * 3);
//Show the report
report.Show();

As a result, we will get the following barcode:

Example of Japanese Post 4-State Code created using the code

Now we can use the Japanese Post 4-State Code barcode in our business applications (encode postal addresses), to create letters sent by mail.

about product download buy
avatar
Vladislav Yarovoy
.NET Development
Fast Reports Team: Vladislav Yarovoy - NET Development at Fast Reports
.NET FastReport Barcode

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Buy
  • Download
  • Documentation
  • Testimonials
  • How to uninstall
  • Ticket system
  • FAQ
  • Tutorial Video
  • Forum
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Extended licensing
  • Contact us

© 1998-2022 by Fast Reports Inc.

  • Privacy Policy