|
Question : FoxPro Code for creating text string for Intelligent Mail Barcode
|
|
Has anyone worked with this new USPS barcode and can provide VFP code or resources for creating the text string for the Intelligent Mail Barcode
|
|
Answer : FoxPro Code for creating text string for Intelligent Mail Barcode
|
|
Resources: https://ribbs.usps.gov/index.cfm?page=intellmailmailpieces I assume you are working with some sort of postal software such as PostalSoft, BCC, Accuzip, Satori or others. All of these companies provide solutions that I recommend taking advantage of. But if you have in fact done your research and decided you need to tackle this on your own then make use of the USPS provided encoder DLL and Font here: https://ribbs.usps.gov/onecodesolution/download.cfm.
You will of course need to understand how to create your Tracking Code and Routing ID. If you do not know what these are then you have got ahead of yourself :)
DECLARE USPS4CB In c:\imb\usps4cb.dll string TrackPtr, string RoutePtr, string BarPtr
Local lcTrack, lcRoute, lcBar lcTrack = "00000000000123456789"+chr(0) *20 characters (BCID, SvcType, MID, Serial) lcRoute = "9805748179"+chr(0) * 5,9,or 11 characters (Old school DPBC string: ZIP,ZIP4,DP) lcBar = space(65)+chr(0) RetCode = USPS4CB(lcTrack,lcRoute,@lcBar) ? "Return Code:",RetCode * this tells you if you generated a good barcode string ? "Bar:", lcBar * this is the barcode you will apply the imb font to. See the Download page I gave above for font resource.
|
|
|
|