Skip to Content
Technical Articles

How to use ADS delivered MICR Font

Introduction:

MICR (aka Magnetic ink character recognition code) is a special font used for printing checks or official documents processed by banks (e.g. to print bank id, customer account number or check number in the checks). Normally to print this font in Adobe forms, we need to purchase a third party font and install in ADS/printer.

Standard ADS Font

Recently I came across SAP note SAP Note 2447246 which provides details on standard ADS delivered MICR font (‘MICR Std’) in Adobe forms. It is available with below ADS versions:

Prerequisites:

  • ADS for NW 7.31 and higher release or
  • SAP Cloud Platform Forms by Adobe (incl. S/4HANA Cloud)
  • LiveCycle Designer 10.4 and higher version.

Printing Special Characters using MICR Std Font:

To print special characters using MICR Font we need to print following unicode values in the form:

  • ⑆ 0x2446 (transit: used to delimit a bank code)
  • ⑇ 0x2447 (amount: used to delimit a transaction amount)
  • ⑈ 0x2448 (on-us: used to delimit a customer account number)
  • ⑉ 0x2449 (dash: used to delimit parts of numbers—e.g., routing numbers or account numbers)

Steps to apply this font in Adobe Form

With the steps below, we will print three sample MICR codes:using transit& on-us in the document.

  1. Add following fields in the form interface Import Section to pass values for MICR printing
  2. Create three text fields in Adobe Form and bind these fields to interface fields from Data Bindings.
  3. Go to Font Palette and apply MICR Std font for all three fields:
  4. For printing MICR symbols in the text fields, we need to pass unicode values for them. It is not possible to pass unicode values directly to the text fields. So we need to write Javascript to add unicode values for the fields.Go to Menu Palettes->Script Editor, select text field & initialize event to write javascript code.
  5. Define variables for passing unicode values as below and concatenate to the raw value of the text field.You can also have additional character in the input field(e.g. U for ‘On-Us’ symbol) to conditionally print MICR ornaments in the text.
  6. Similarly add Javascript code for other two fields
  7. Sample code for Field 1, 2 & 3:
    //Sample code for Field 1:
    var sym_on_us = String.fromCharCode(0x2448);
    var mystring = this.rawValue;
    
    this.rawValue = sym_on_us + mystring + sym_on_us;
    
    //Sample code for Field 2:
    var sym_transit = String.fromCharCode(0x2446);
    var mystring = this.rawValue;
    this.rawValue = sym_transit + mystring + sym_transit;
    
    
    //Sample code for Field 3:
    var sym_on_us = String.fromCharCode(0x2448);
    var mystring = this.rawValue;
    this.rawValue = mystring + sym_on_us;
    
  8. Execute this form and provide sample values:
  9. Sample Output:

Conclusion:

In a summary we need to select MICR Std font and write javascript to pass unicode values for MICR symbols in the Adobe document.

With the release of MICR Std Font, we can remove dependency from external Third Party Font/Printer for this purpose.

Referred Site: Info on MICR Font

2 Comments
You must be Logged on to comment or reply to a post.