For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To: Generate Checks and Banking Documents

Use MICR and OCR formatting for checks and banking documents.

Use MICR and OCR attributes when a document must match bank processing requirements.

Problem

You need to create checks with MICR encoding for bank processing.

Solution

Basic MICR Routing Number:

{{!Check__c.RoutingNumber__c MICR="11"}}

MICR with Custom Spacing:

{{!Check__c.RoutingNumber__c MICR="11,-5"}}
{{!Check__c.RoutingNumber__c MICR="11,5"}}

MICR Account Number:

{{!Check__c.AccountNumber__c MICR="11"}}

OCR for Check Numbers:

{{!Check__c.CheckNumber__c CR="OCR-A,20,0"}}

Complete Check Example

<div style="width: 8.5in; height: 3.5in; border: 1px solid #000; padding: 20px;">
  <div style="text-align: right;">
    {{!Check__c.Date__c format-date="MM/dd/yyyy"}}
  </div>

  <div style="margin-top: 20px;">
    Pay to the order of: <strong>{{!Check__c.Payee__c}}</strong>
  </div>

  <div style="text-align: right;">
    ${{!Check__c.Amount__c format-number="#,###.##"}}
  </div>

  <div>
    {{!Check__c.Amount_In_Words__c}} DOLLARS
  </div>

  <div style="margin-top: 40px; font-family: monospace;">
    {{!Check__c.RoutingNumber__c MICR="11"}} {{!Check__c.AccountNumber__c MICR="11"}} {{!Check__c.CheckNumber__c MICR="11"}}
  </div>
</div>

MICR Character Reference

Character
Meaning

t

Transit symbol

o

On-us symbol

a

Amount symbol

d

Dash symbol

Tips

  • Only digits and t, o, a, and d are transformed.

  • Font size controls character width. 11 is standard.

  • Spacing defaults to 0.

  • Use OCR for security numbers.

  • Actual bank processing still requires magnetic ink toner.

Last updated

Was this helpful?