Page 1 of 1

Postal Barcodes

Posted: Fri Oct 27, 2006 10:31 am
by BruceB
I^m looking for a UDF or Calc field to print US Postal barcodes on mailing labels. I use RR Reports Infinity.:-)____Thanks,____Bruce

=> RE: Postal Barcodes

Posted: Mon Oct 30, 2006 7:35 am
by kfleming
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)+")"

==> RE: Postal Barcodes

Posted: Wed Nov 01, 2006 4:12 pm
by BruceB
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 "("