Jump to content

QR Codes with multiple data


Recommended Posts

I created a QR Code that has an account number (static) and a numbering system for 5 positions on the same page.

The following works but I need it sized a little bigger. Is this possible? Changing the point size in text editor doesn't do the trick.

 

var data = "222222222" + FormatNumber("00000", number1++);

return MakeQRBarcodeGraphic(data);

Link to comment
Share on other sites

Dan Korn
This post was recognized by Dan Korn!

LyndaEngelage was awarded the badge 'Helpful' and 30 points.

With a little help from a co-worker we figured it out by converting an existing rule and making edits to it as follows

// Rule converted from XML Template "QR Barcode Rule: Numbering":
// Choose the following values:
// Begin XML Template selections //
//var FieldOrRuleToEncode = "Numbering"; // "Data field or rule to encode" (Required): FieldOrRuleList
var data = "222222222" + FormatNumber("00000", number1++);
var EncodingMode = "Byte"; // "Encoding mode" (Required): PickList ["Byte" (All characters), "AlphaNumeric" (Alphanumeric only), "Numeric" (Numeric only)]
var ErrorCorrectionMode = "M"; // "Error correction" (Required): PickList ["L" (Low), "M" (Medium), "Q" (Quality), "H" (High)]
var PreferredFormat = "0"; // "Format (symbol size)" (Required): PickList ["0" (0 (automatic)), "1" (1 (21x21)), "2" (2 (25x25)), "3" (3 (29x29)), "4" (4 (33x33)), "10" (10 (57x57)), "40" (40 (177x177))]
var PointSize = StringToNumber("6 pt"); // "Font size (defaults to 10)": PointSize
var NoFontTag = false; // "Suppress <f> (font) tag": CheckBox
var Font = "IDAutomation2D"; // "Font": FontList
var ProcessTilde = false; // "Process tilde (~) escapes": CheckBox
// End XML Template selections //

var DataToEncode = data;
return MakeQRBarcode(DataToEncode, ProcessTilde,
          EncodingMode, ErrorCorrectionMode, PreferredFormat,
          PointSize, NoFontTag, Font);

 

 

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