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.
source: http://msdn.microsoft.com/en-us/library/dd355211.aspx
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:
Related posts:
- What is in your Dynamics NAV toolbelt? Downgrade Objects from ara3n Here is another useful tool made by Rashed Amini aka. ara3n, i often use, when i have to “retrofit” objects from a newer version of...
- Yet another Dynamics NAV Splash Screen – YADNSS! Yet another…! As a regular Dynamics NAV blog reader i am sure you have seen this before, in various flavors, but here is a simple...
- Cloning – Extending Data Templates in Dynamics NAV using TableFilter Since Dynamics NAV version 5, when RIM was introduced there has been the functionality for Data Migration and Master Data Templates. I have never really...
- User Menu Level, Object BLOB – Generator code Yesterdays post on assigning MenuSuite Menu’s programatically got a lot of hits, and i have been getting a couple of emails about how to create...
- How to compare Records in Dynamics NAV? Last week while being onsite at a customers site, we suddenly needed the ability to compare 2 records to see if any changes were done...
Thanks for the review!
You are very welcome! I think it is this sharing of tools and ideas, that makes the NAV community so special.
[…] Bron : Got C/AL Lees meer… […]
free .net barcode generator/reader code 128
http://www.keepdynamic.com/dotnet-barcode/barcode/code-128.shtml