HowTo Datamatrix 2d Barcodes - install and use it

Issue description

A lot of customers need "Datamatrix 2d Barcodes" within designer-layouts.

In the standard version of designer, this is not possible. But the functionality can be added through a AddOn called "-BarCodeHelper"

Installation:
import BarCodeHelper.sip through coresuite Administration

Usage:
1) in SharpShooter add an AdvancedPicture

2) select the AdvancedPicture and go to Properties-> GenerateScript
in the field, add:

Dim bcdm As Datamatrix.net.DmtxImageEncoder = New Datamatrix.net.DmtxImageEncoder
Dim optionObj As Datamatrix.net.DmtxImageEncoderOptions = New Datamatrix.net.DmtxImageEncoderOptions()

Dim gs1Code As String
gs1Code = "yourCode"


optionObj.ModuleSize=8
optionObj.MarginSize=30
optionObj.Scheme = DataMatrix.net.DmtxScheme.DmtxSchemeAsciiGS1
'optionObj.BackColor = System.Drawing.Color.Red
'optionObj.ForeColor = System.Drawing.Color.Green

advancedPicture1.Image = bcdm.EncodeImage(gs1Code,optionObj)

********************************************

3) with the function above, the datamatrix gets generated in the AdvancedPicture.

As soon as you preview the picture, it will show a DataMatrix 2d Barcode.

Hints:
If you need to place a lot of text in a Datamatrix, you need to play around with following properties, therefore go to:

template-Properties -> Graphics Settings -> Interpolation Mode and Smoothing Mode
(for Barcodes you want to make sure, that no smoothing is used; each transitions should be hard. For best recognition, it's important to have only black and white - without any colors in between.
 


Remarks

If this was too technical, no Problem. You may also just watch the following movie which will explain the installation in detail.

http://www.youtube.com/watch?feature=player_embedded&v=s_HWgZVRmkU

 

See attachements for .sip file and example layout

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.