MICR

Top  Previous  Next

Syntax

 

micr col|{numexpr}, row|{numexpr}, "account"|{expr}, "check"|{expr} [,"font"| bold | light | narrow | {expr} ]

Prints MICR font at the col and row specified, for laser check printing. If used, numexpr is a Business Basic expression that generates a numeric value for the column and row.  The account number must be in the format :123456789:xxx", where the colons surround the 9-digit bank number, and the balance of the account number is terminated with, or contains, a quote.  Quotes can be identified in a text literal with <34>.  A space after the bank number and terminating colon is optional.  When the MICR code is generated, colons or A become a "transit" symbol, B becomes an "amount" symbol, quote or C become an "on us" symbol, and a hyphen or D becomes a dash .  Account numbers can contain these symbols, spaces, and digits.  The check number can be up to 12 digits long.  This keyword supports 8 inch checks only, not the smaller 6 inch variety, which requires a different format for the MICR.

If no "on us" symbol is present in the account number (i.e. no <34> or C character), then one is appended automatically.

 

The fixed bank number is typically hard-coded, but can be an expression if enclosed in braces {}.  The check number will generally be an expression, which can use get() to retrieve the number from the application print, or can be a variable defined in a prepage{} block.

 

Note that with proper soft font configuration, you can use the text command to print MICR encoded data in any format, such as that required by a deposit slip.  The same MICR soft fonts included for use with this command can be used as text soft fonts.

 

There are several fonts pre-configured for the various output formats, named micr, micrb10, micrl15, and micrn1, each offering a slightly different appearance, the latter three being for bolder, lighter, and narrower output.  These are provided because of slight tolerance variations in bank check reading equipment as well as paper and toner differences.  If your bank does not accept the default font, you can try one of the other three.

 

Optionally provide one of the mnemonic keywords bold, light, or narrow.

 

 

Example:

 

micr 6,42.25,":123456789:9999-1234<34>",{trim(get(65,5,6))} would print a MICR encoded line with the indicated bank and account number, and a check number derived from the input stream data printed at column 65, row 5, for 6 characters.

 

Drivers: pcl, pdf, ps