Home > Articles > .Net Framework Articles > Using Spire.Barcode in Dynamics NAV 2016

Using Spire.Barcode in Dynamics NAV 2016

by Greg Barbados   on Mar 04, 2016   Category: .Net Framework  | Level: Beginner  |  Views: 832    |  Points: 100   
Like this article? Bookmark and Share:
I want to share my first experience with Spire.Barcode in Dynamics NAV 2016.

Introduction

I want to share my first experience with Spire.Barcode in Dynamics NAV 2016.

We were searching for a component with high performance and reliability in barcode creation.  It seems that we found the right tool with Spire.Barcode for us. 

So let’s jump into the relevant development steps.

What you need first is Spire.Barcode … of course

So download the package and install it. (spire.barcode_1.2.5.msi)

After installation you will find the component in the folder “C:\Program Files (x86)\e-iceblue”

For Dynamics NAV we have to copy the files from “C:\Program Files (x86)\e-iceblue\Spire.Barcode\Bin\NET4.0”. There you will find Spire.Barcode.dll and Spire.Barcode.xml.

Create a new folder in your Dynamics NAV Service Add-In Folder. For Dynamics NAV 2016 this should be “C:\Program Files\Microsoft Dynamics NAV\90\Service\Add-ins” if you have a standard installation.

This should look something like this. It’s up to you how you will name your folder. In my case I named it “Spire.Barcode”


Copy this folder to your client directory from where you start your “Development Environment”. This is just for development. We will run everything on the Service Tier.


Now we should have to folders.

C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Add-ins\Spire.Barcode

C:\Program Files\Microsoft Dynamics NAV\90\Service\Add-ins\Spire.Barcode

 

In the Development Environment you can see that there is a new .NET Type available.

 

Let’s create our first Barcocde. 

1. Create a new Codeunit “SpireBarcode Mgt.”

   Create a new function in “SpireBarcode Mgt.” called CreateBarcode and set it to Local = No


2. Create a new Table “Spire.Barcode Test Table”


3. Create a new Page “Spire.Barcode Test Page”




That’s the way how you can create your QR Code.

Feel free to create different Barcodes by setting another Barcode Type in Codeunit 70000.

SpireBarcodeSettings.Type := SpireBarcodeType.<Type>

where <Type> could be


 

 





Like this article? Bookmark and Share:

Most viewed Articles

User Comments


No response found, be the first to review this article.

Submit feedback about this article

Please sign in to post feedback

Latest Posts