Jump to content

Recommended Posts

Posted

I am needing to use a 2D barcode. My problem is that in the first line of code the “02” I need to be the page count with a zero before it. This page count is variable per record. Any idea how to make that happen. I tried to put the page count rule in there, but it didn’t seem to work.

 

var dataforbarcode = “02" + Field('SEQUENCE');

var dmbarcodeobj = new DataMatrixBarcode;

dmbarcodeobj.encodingmode = "C40";

dmbarcodeobj.pointSize = 4;

return dmbarcodeobj.Make(dataforbarcode);

Posted

Check the "Re-evaluate this rule for every text flow" box in the Rule Editor, and change the first line to this:

var dataforbarcode = FormatNumber("00", FusionPro.Composition.totalPages);

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