Jump to content

2D Datamatrix Barcode - Fixed # of Cells in Grid?


changewinds

Recommended Posts

Hi,

 

We're trying to copy a customer's 2D Datamatrix barcode, and they insist that the cell format needs to be fixed in 12x12 squares.

 

(Meaning that if you would count the individual spaces that would make up the 2D barcode's grid, there would be 12 squares going across the barcode and 12 squares going up and down the height of the barcode).

 

In FusionPro, it seems like the 2D barcodes always default to a 14x14 grid - is there any way to modify this?

 

Thanks! :)

-Gwen

Link to comment
Share on other sites

By default, the Data Matrix barcode is output at the minimum size required to encode the data. You can force it to a different size by changing the barcode format, like so:

var barcode = new DataMatrixBarcode;
barcode.preferredFormat = 2;
return barcode.Make("some data");

Where format 2 denotes a size of 14 x 14, per this table:

http://www.idautomation.com/barcode-faq/2d/data-matrix/#DataMatrix_Formats

 

The properties of the DataMatrixBarcode object are listed on the Building Blocks dialog, on the Objects node, under Barcodes, and then DataMatrixBarcode. You can also pass the format as a parameter to the MakeDataMatrixBarcode function, which is on the Functions tab under Barcode.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...