Nov 21

Stijn Bossuyt has made a great function/codeunit for generating barcodes within Dynamics NAV without the need for any third party add-ons. You can find more information about it on this MIBUSO blog.

Barcode as defined on Wikipedia: “A barcode is an optical machine-readable representation of data, which shows certain data on certain products. Originally, barcodes represented data in the widths (lines) and the spacings of parallel lines, and may be referred to as linear or 1D (1 dimensional) barcodes or symbologies. They also come in patterns of squares, dots, hexagons and other geometric patterns within images termed 2D (2 dimensional) matrix codes or symbologies. Although 2D systems use symbols other than bars, they are generally referred to as barcodes as well. Barcodes can be read by optical scanners called barcode readers, or scanned from an image by special software.”

Lets go over a quick guide on how to use it.

The objects in the object package are:

  • Table 70000 Code 128/39
  • Form 70000 Barcode to File
  • Report 70000 Barcode Example
  • Codeunit 70000 Barcode Mgt.

Notice you do not need to have the table in your license, as it is only being used a temporary table.

A temporary table is a temporary variable that holds a table. A temporary table is used as a buffer for table data in your C/AL programs. For more information about C/AL, see Introduction to C/AL.

You can use a temporary table just like you use a database table. The differences between a temporary table and a database table are:

  • A temporary table is not stored in the database, but is only held in memory until the table is closed.

The write transaction principle that applies to a database table does not apply to a temporary table. For more information, see Write Transactions and Recovery.

You can take a look at the sample report 70000, to get an idea on how to use it. But the functions basically takes parameters for the Barcode, size and orientation. This is actually one of the cool features that it allows you to create vertical barcodes.

The functions supported are:

You can use the functions in both regular classic reports as well as RTC reports. As usual i can’t take credit for this nice tool, but i like to share these little hidden gems with you. I have already used it in several projects, and it just works! Thanks Stijn! Enjoy.

Here are some sample barcodes:

4 Responses to “What is in your Dynamics NAV toolbelt? Barcode Creator by Stijn Bossuyt”

  1. Stijn says:

    Thanks for the review!

  2. You are very welcome! I think it is this sharing of tools and ideas, that makes the NAV community so special.

Leave a Reply

preload preload preload