Jump to content

2D barcodes


Recommended Posts

Create a text rule with this content and then apply the rule box. Apply the IDAUTOMATIONDMATRIX font to it and you should be good to go.

 

// Check treat strings as tagged text
//Replace "CNTL" with name of Field with ""
//Apply Rule as a text field and apply IDAUTOMATIONDMATRIX Font in 4pt

return MakeDataMatrixBarcode (Field("CNTL"), true, "TEXT", "UIC", "4", "NoFontTag", "IDAutomationDMatrix");

Link to comment
Share on other sites

  • 2 weeks later...
What I have are two differnet data fields that need to be in the barcode. I created the rule that you sent but when i draw a text box i do not have an option to apply a rule to it. also I need this barcode to be in QR format. Any help would be appreciated.

Thanks

 

Try this script then setup as a rule make sure you check Treat returned strings as tagged text. You can add more that one field by putting in the "+" sign. You may have to increase the point size.

Link to comment
Share on other sites

Hi Chris,

 

FusionPro includes support for 2 types of 2D barcodes - Datamatrix and PDF417. At this time, we don't include support for the QR Code format.

 

Creating these barcodes requires 2 components for FusionPro to output them. The first is the barcode font iteself and the second is the encoder which translates the data you want to appear into the barcode into a string of text that you then typeset with the barcode font. Every barcode (pretty much) uses a different encoder so I would not expect the DataMatrix or PDF417 encoders to produce the correct output for QR Code.

 

There are a couple options for you if you would like to see support for the QR Code in FusionPro. The first is to purchase the font for QR Code and then write the encoder yourself (or use an off-the-shelf encoder for this barcode which you would run on your data before you bring it into FusionPro).

 

The second option is to speak with our team about explicity adding support for this barcode in FusionPro itself. We offer services for projects such as this and have added a number of barcodes for customers over the years.

Link to comment
Share on other sites

  • 4 months later...

I thought I had pasted the last time I was here.

 

Try this see if that works for you.

Set it as a rule name it 2D barcode then insert it.

 

 

 

 

 

/*dataForBarcode = Field("account_num");

 

dmBarcodeObj = new DataMatrixBarcode('', '', '', '', '', '');

 

markupData = dmBarcodeObj.Make(dataForBarcode);

 

return markupData;

 

*/

 

dataForBarcode = Field("memid");

 

dmBarcodeObj = new DataMatrixBarcode('', '', '');

 

dmBarcodeObj.pointSize = 4;

 

dmBarcodeObj.encodingMode = "BASE256";

 

markupData = dmBarcodeObj.Make(dataForBarcode);

 

return markupData;

Link to comment
Share on other sites

  • 3 months later...

Hi Tony, I'm hoping you can help me out. I have to create some 2D Barcodes. I have used your script that you posted back in May and it works perfectly.

 

However I need to format it so that the size X in each symbol will be either a matrix of 16x48 or a matrix of 18x18. Is there a spot in your script that I can enter in the format number to control the size of the Barcode.

 

/*dataForBarcode = Field("account_num");

 

dmBarcodeObj = new DataMatrixBarcode('', '', '', '', '', '');

 

markupData = dmBarcodeObj.Make(dataForBarcode);

 

return markupData;

 

*/

 

dataForBarcode = Field("memid");

 

dmBarcodeObj = new DataMatrixBarcode('', '', '');

 

dmBarcodeObj.pointSize = 4;

 

dmBarcodeObj.encodingMode = "BASE256";

 

markupData = dmBarcodeObj.Make(dataForBarcode);

 

return markupData;

 

Thanks in advance.

 

Thanks,

Richard.

Link to comment
Share on other sites

rgreenidge,

 

Yes there is a spot. Go to:

 

dmBarcodeObj.pointSize = 4;

 

Right now it is set to 18 x18. If you want it 16 x 48 change it to dmBarcodeObj.pointSize = 29;

 

Also you can go to:

 

Go to http://www.idautomation.com/datamatrixfaq.html

 

Scroll down to the bottom under 2D Martix Barcode Formats.

 

It shows all of the Format number and what they equal for size.

 

I hope that helps.

Link to comment
Share on other sites

  • 3 years later...

Very helpful thread. Thanks, guys!

 

I attached a screengrab of my settings that generates the little 12x12 pixel 2D codes you'd use on match mailings for USPS mailpieces. I would typically set the variable to be the USPS Presort Sequence number (Where you see "NUMBER" in the code).

 

Some tweaking may be necessary to get it to work with your individual system.

Don't forget to use the IDAutomationDMatrix font.

 

HTH,

DataMatrix-Barcode.jpg.766866021bdca7c597d3de5702b62148.jpg

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...