Jump to content

Need help creating an IMB using Numbers


KatJones

Recommended Posts

I need assistance in creating a IMB that passes postal regulations using numbers, not ALPHA characters.

 

I have very little knowledge about mail/postal software, so any assistance would be appreciated. My data processing department no longer wants to use the ALPHA character field (ONECODE) and wants to start using the IMBDIGITS field.

Link to comment
Share on other sites

I normally use the alpha myself, but if using digits I think you can use the built in rule from Fusion Pro and just have the first field in the wizard be your entire string and leave the rest of the fields blank. I haven't tested this though.

 

Just tested it and it works. You will get an error message because you supplied everything in one field though. Just remove the first If statement after you convert the rule to javascript and the error message will no longer appear.

Edited by dreimer
Link to comment
Share on other sites

I should point out, the rule uses the "IDAutomation4STATE" font. The font I use when just applying a font to my alpha string is "USPSIMBStandard". They do not look exactly the same and I prefer the "USPSIMBStandard" font. You may have to adjust tracking as well with the numbered string, my first test didn't pass, lines to spaced out and to thin as well. Make sure you test!!
Link to comment
Share on other sites

Good morning.

 

I've used this javascript coding which is an edited form of the base wizard rule that is in FusionPro...

if (Trim(Field("Intelligent Mail barcode")) != "")  {
Var1="Intelligent Mail barcode";
Var2="";
Var3="16";
v_tracking="0";
v_font="USPS4CB";
fontTag="0";
Var4="FATD";


if (Var2 != "")
{
 if ((Field(Var2).length != 0) && (Field(Var2).length != 5) && (Field(Var2).length != 9) && (Field(Var2).length != 11))
   ReportWarning("The routing number is not the correct length of 0, 5, 9, or 11 characters in record number " + CurrentRecordNumber() + ".");
 RoutingNum=Field(Var2);
}
else
   RoutingNum="";

if (fontTag == "0")
 fontTag=false;
else
 fontTag=true;

var imbOut = '<tracking newsize="' + v_tracking + '">' + MakeOneCodeBarcode(Field(Var1), RoutingNum, Var3, fontTag, v_font, Var4) + "</tracking>"; 
return imbOut
//return ReplaceSubstring(imbOut, '<z newsize="16">', '<z newsize="16"><setwidth newsize="15.5">')
}
else  {
   return "";
}

You would simply need to edit the field markers to match what you are using. The second return feature that I have commented out is used when I need to shrink the width of the imb coding slightly.

 

The font that I use is called USPS4CB, but I do believe that this could work for any font as long as you use the name of it here. Also remember to check the tagged text feature for this rule.

 

Hope this helps.

.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...