#1
|
|||
|
|||
![]()
Hello, I have a job were the IMB is in the numeric format. I can not find a rule or any anything in the documentation on how to print the IMB barcode.
|
#2
|
||||
|
||||
![]()
If the barcode is already encoded into a string of 0, 1, 2, and 3 digits, then you can simply insert the field into the Text Editor and put it in the IDAutomation4State font. You don't need any rule. If it's in another format, you can go into the New Rule dialog, on the Barcode tab, and select the Intelligent Mail Barcode Rule.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#3
|
|||
|
|||
![]()
When I use the following IMB rule (see attachment) I get an error message of
C:\Program Files (x86)\PTI\FusionPro\Builtins.js, line 2721: warning: The tracking number is not the correct length of 20 characters in record number 1. Composing record #1, input record 1 My barcode field contains the following "00240206150129480945065151780". |
#4
|
|||
|
|||
![]()
You shouldn't use a rule if the data is numeric. Just place the field in a text box and apply the correct font.
__________________
Don Reimer - JavaScript Novice MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1 |
#5
|
||||
|
||||
![]()
Try this:
Code:
var fullNum = Field("IMBRCDFRJN"); var TrackingNum = fullNum.substr(0,20); var RoutingNum = fullNum.substr(20); return MakeIntelligentMailBarcodeEx(TrackingNum, RoutingNum, 10, "", "", "", 5);
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#6
|
|||
|
|||
![]()
Thanks Dan that worked. But I am still missing something. When I just put the numeric barcode numbers in a text box and apply the font it does not show up correctly. The sample attached shows the barcode when applying the IDAutomation font. I also tried a few other fonts but they all require the barcode field to be the Alpha Letter.
|
#7
|
||||
|
||||
![]()
Great!
Quote:
If the data has already been encoded to a string of 0, 1, 2, and 3, then yes, you can simply apply the IDAutomation4State font to it. Similarly, if you have a string of F, A, T, and D characters, you can apply a font such as USPSIMBStandard to it. Nothing else needs to be done. However, if what you have is the "raw" barcode data (tracking and routing codes), which contains any digits 0-9, then you first need to run it through an encoding algorithm to get the string of 0, 1, 2, and 3. FusionPro's built-in MakeIntelligentMailBarcodeEx function performs both steps: It takes the raw data and encodes it as a string of 0, 1, 2, and 3, and then applies the IDAutomation4State to it, with some extra formatting to control the size of the barcode. (It can also detect if you have data that's already formatted as either 0, 1, 2, and 3 or F, A, T, and D, and handle that appropriately.) Some background: What is now called the Intelligent Mail Barcode used to be called the 4-State Barcode. It wasn't called 4-State because it applied to only four states in the U.S. (which was confusing, and probably why they changed the name), but because the barcode itself consists of four distinct symbols, or vertical bar types. called Full, Tracker, Ascender and Descender (F, T, A, and D). Different barcode vendors and generators came up with different ways of creating these barcodes from these four symbols. Many font vendors decided to encode the characters F, T, A, and D, to match the names of the symbols. Other vendors decided to have their fonts encode four different characters; in the case of IDAutomation, they decided to encode the numbers (digits) 0, 1, 2, and 3. So the bottom line is that the IDAutomation4State does not handle any arbitrary string of digits (numbers); it handles data encoded specifically as a string of 0, 1, 2, and 3 digits.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#8
|
|||
|
|||
![]()
Thank You for the additional information. I will look into the function. I wish there was a way to just place the full numeric barcode values in a text box or a rule and apply the font without having to parse the barcode into different fields.
|
#9
|
||||
|
||||
![]() Quote:
https://en.wikipedia.org/wiki/Intell...point_ZIP_code That delivery point is usually added by a postal sorting program, so that the mailing can take advantage of discounted pre-sorted rates. Your raw barcode data has strings of 29 digits, which are the 20-digit tracking code plus only 9 digits for the routing, and are missing the delivery point information. A valid Intelligent Mail Barcode can still be created without the delivery point (and even without any Zip code or routing code at all), but we didn't account for that particular variation when we make our rule because we assumed that such barcodes would generally be used in a pre-sorted workflow. So, perhaps we should enhance the Form rule, and the MakeIntelligentMailBarcodeEx function, to accept routing codes of 0, 5, or 9 digits, as well as the full 11 digits, which would make your data more "plug and play," but for now, if your routing code isn't the full 11 digits, you'll need just those couple of lines of JavaScript.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|