View Single Post
  #1  
Old February 25th, 2019, 07:38 AM
jpmiller jpmiller is offline
Junior Community Member
 
Join Date: Dec 2016
Location: Jacksonville, FL
Posts: 19
Question DataMatrix with sheet number

Below is the code I am using to generate a 25 character DataMatrix barcode.

// Rule converted from XML Template "DataMatrix Barcode":
// Choose the following values:
// Begin XML Template selections //

var jobID = "0103999"; // 7 digit
var sequence = Field("sequence"); // 6 digit
var currSheet = FormatNumber( "00", FusionPro.Composition.impositionSheetNumber ); // 2 digit
var totSheets = FormatNumber( "00", FusionPro.Composition.impositionTotalSheets ); // 2 digit

var feeder1 = Field("feeder1"); // 1 digit
var feeder2 = Field("feeder2"); // 1 digit
var feeder3 = Field("feeder3"); // 1 digit
var feeder4 = Field("feeder4"); // 1 digit
var feeder5 = Field("feeder5"); // 1 digit
var feeder6 = Field("feeder6"); // 1 digit
var divertBin = Field("divertbin"); // 1 digit
var sortYN = Field("sort"); // 1 digit
var EncodingMode = "Text";
var PreferredFormat = "0";
var PointSize = StringToNumber("6");
var NoFontTag = false;
var Font = "IDAutomationDMatrix"; //
var ProcessTilde = false;
// End XML Template selections //

var DataToEncode = (jobID + sequence + currSheet + totSheets + feeder1 + feeder2 + feeder3 + feeder4 + feeder5 + feeder6 + divertBin + sortYN);
return MakeDataMatrixBarcode(DataToEncode, ProcessTilde,
EncodingMode, PreferredFormat,
PointSize, NoFontTag, Font);

Need a unique DataMatrix barcode on front of each sheet of a set.
(sheet = front+back. NON-IMPOSED) Imposition is done at print device.
(set = 2 sheets)

The Sheet Counter should generate four digits. (0102, 0202; 0102, 0202; etc...)
The result I am getting is always 0100 for each record.

I have also tried the CurrentPage counter too.
I just can't figure out how to get the counter to work properly.
Please help.
Attached Files
File Type: pdf 2D Barcode Sheet counter.pdf (60.2 KB, 5 views)
File Type: zip test data.csv.zip (1.5 KB, 3 views)
File Type: pdf test data-Output.pdf (39.5 KB, 4 views)
Reply With Quote