Postal Barcodes

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
BruceB
Posts: 21
Joined: Tue Oct 10, 2017 12:44 pm

Postal Barcodes

Post by BruceB » Fri Oct 27, 2006 10:31 am

I^m looking for a UDF or Calc field to print US Postal barcodes on mailing labels. I use RR Reports Infinity.:-)____Thanks,____Bruce

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Postal Barcodes

Post by kfleming » Mon Oct 30, 2006 7:35 am

UDF Declaration:__USPS(c_zip)____Expression:__"("+subs(zip,1,5)+trim(subs(zip,7,4))+ str(IIF(VAL(str(mod(VAL(subs(zip,1,1))+VAL(subs(zip,2,1))+VAL(subs(zip,3,1))+VAL(subs(zip,4,1))+VAL(subs(zip,5,1))+VAL(subs(zip,7,1))+VAL(subs(zip,8,1))+VAL(subs(zip,9,1))+VAL(subs(zip,10,1)),10),1))=0,0,10-VAL(str(mod(VAL(subs(zip,1,1))+VAL(subs(zip,2,1))+VAL(subs(zip,3,1))+VAL(subs(zip,4,1))+VAL(subs(zip,5,1))+VAL(subs(zip,7,1))+VAL(subs(zip,8,1))+VAL(subs(zip,9,1))+VAL(subs(zip,10,1)),10),1))),1)+")"

BruceB
Posts: 21
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Postal Barcodes

Post by BruceB » Wed Nov 01, 2006 4:12 pm

Thank you for the code. ____I found a free download of the USPS Barcode font at http://www.fryfonts.com/free-font/92____There is one change using this font. The beginning and ending bar is made with a "/" instead of a "("

Post Reply