#1
|
|||
|
|||
![]()
I have a job with delivery point barcode info in the database.
Problem is when I use the "postnet barcode" rule there is a big gap between the frame bars and the 5+checksum codes but not 5+4+deliverypoint+checksum codes. The "barcode" rule using <zipcode> from the database looks good (no gap) but the post office bounced it and said it had no check digit. What is the proper rule to use for a deliverypoint barcode with a mix of 12 and six character codes? Thanks, |
#2
|
||||
|
||||
![]() Quote:
Quote:
Quote:
Code:
var barcode_data = Field("Zip") + Field("DeliveryPoint"); return '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data);
__________________
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
|
|||
|
|||
![]()
I tried your code and it adds a zero to the end. Is there any way you can get ride of that zero?
var barcode_data = Field("Zip") + Field("DeliveryPoint"); return '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data); |
#4
|
||||
|
||||
![]()
Jordan,
I just replied to another post related to this which might be the solution to what you are seeing. Check out: http://forums.printable.com/showthread.php?p=1077
__________________
--Mark Hilger |
#5
|
|||
|
|||
![]()
Same problem as first post. There is a big gap between the frame bars and the zip portion of the barcode with 5 codes but not 5+4 codes when using Postnet Barcode Rule. Data file has a field for the "delivery point barcode" but no "zipcode" by itself this time.
Gave up and used a mailing machine last time.
__________________
Mark FusionPro 6.1P1m mac Acrobat Pro 7,8,9 Mac osX 10.4.11 |
#6
|
|||
|
|||
![]()
I have found a solution for this problem and have been using it for a few months now. here is the script that i use.
var barcode_data = Field("ZIP Code") + Field("Delivery Point"); postnet= '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data); BCode = Left(postnet, Len(postnet)- 2) + ")" ; return BCode make sure "treat returned strings as tagged text" is checked. This rule deletes the extra zero off the end and adds a ")" to complete the barcode. If you have any questions let me know. |
#7
|
|||
|
|||
![]()
I keep getting an error that the input string can only contain numbers.
Data field has colons at beginning and end of delivery point barcode (to make the barcode frame?) Do I have to go into the excel file and strip them out? Your rule I edited is below. var barcode_data = Field("DeliveryPointBarcode"); postnet= '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data); BCode = Left(postnet, Len(postnet)- 2) + ")" ; return BCode
__________________
Mark FusionPro 6.1P1m mac Acrobat Pro 7,8,9 Mac osX 10.4.11 |
#8
|
|||
|
|||
![]()
Try this. This will get rid of the colon on each end of your delivery point as well as construct the barcode.
Var1 = Right(Field("YourField1"), Len(Field("YourField1"))-1) Var2 = Left(Var1, Len(Var1) -1); var barcode_data = Field("ZIP Code") + Var2; postnet= '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data); BCode = Left(postnet, Len(postnet)- 2) + ")" ; return BCode Insert you delivery point field in "YourField1" obviously. The first two lines will delete the first and last character of that field (which would be those colons if i am understanding you right) Let me know if it works ok. |
#9
|
|||
|
|||
![]()
Got cut off for some reason:
There is not a "zip code" field in this excel file, so I get an error. If I put "DeliveryPointBarcode" in I get the error that it can only contain numbers. Do i need to add zipcode to the excel file? And if so, do you know an easy way to do that? Thanks
__________________
Mark FusionPro 6.1P1m mac Acrobat Pro 7,8,9 Mac osX 10.4.11 |
#10
|
||||
|
||||
![]()
Please feel free to edit your post instead of starting a new one.
Quote:
Code:
var barcode_data = Field("DeliveryPointBarcode"); return '<f name="AdvPNET">' + MakePostNetBarcode(barcode_data.replace(/\D/g, ""));
__________________
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 | |
|
|