Mark Posted October 27, 2008 Share Posted October 27, 2008 I posted this elsewhere but I'm guessing this is the proper place. 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 zip+checksum codes, but not zip+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, Link to comment Share on other sites More sharing options...
Alex Marshall Posted October 27, 2008 Share Posted October 27, 2008 If your barcode string contains "-", then this is the issue. You need a continous string of 12 characters so that the FusionPro's "Postnet Barcode" rule template can configure it correctly. You also do not need to use the template if your data string is enclosed in parentheses. Simply insert the field name, and apply the font "AdvPNET". If the fields that you are using to construct the "PostNet Barcode Rule" contain "-", then we will need to write a specific logic to strip it out. Link to comment Share on other sites More sharing options...
Mark Posted October 27, 2008 Author Share Posted October 27, 2008 There are no dashes, and just applying the font AdvPNET leaves off the frame bars. The number is in the database as ":12345123412:" Colons for frame bars, I assume. Link to comment Share on other sites More sharing options...
Alex Marshall Posted October 27, 2008 Share Posted October 27, 2008 Hello, Create an empty rule and try this logic: barcodeData = Field("Barcode Data"); newBarcodeData = '(' + ReplaceSubstring(barcodeData, ':', '') + ')'; return newBarcodeData; Check the box for "Treat Return Strings As Tagged Text". Give the rule a name. Click "OK' "Ok" Insert the rule name and apply the fon "AdvPNET". Note: As long as your data string has the check digit, it should work. Link to comment Share on other sites More sharing options...
Mark Posted October 27, 2008 Author Share Posted October 27, 2008 Ok, I tried it and it looks like the frame bars are spaced right. I will print out samples to send to the post office to test. I will let you know if that works. thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.