# How To: Generate 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sdocs.com/sdocs/advanced-template-logic/template-attributes/template-attributes-how-to-guides/how-to-generate-checks-and-banking-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
