Example - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Dim II

If PHONE.IsBlank Then

For II = 1 To Form.ZoneCount

Form.Zone(II).Value = ""

Form.Zone(II).Hidden = True

Next

End If

  1. Create one text zone around the phone field and apply parameters as needed.
  2. Assign the zone name as Phone.
  3. Select Parameters Toolbox button | Rules Parameters, then click the zone to access the zone level Rules Parameters.
  4. Click the VBScript tab | Post Extraction button to access the VBScript window.
  5. Enter the following code in the main VBscript window:

    Dim II

    If PHONE.IsBlank Then

    For II = 1 To Form.ZoneCount

    Form.Zone(II).Value = ""

    Form.Zone(II).Hidden = True

    Next

    End If

  6. Click the Syntax Check button to identify any syntax errors in the script. "Successfully Compiled!” appears at the bottom of the window.
  7. Click OK in both the VBScript Editor and Rules Parameters window.
  8. Run the template through Interactive Processing to preview the ASCII. Data is not output, however, delimiters are output.

    To remove delimiters, select the Parameters | Output | Advanced tab. Disable the Output Hidden Lines check box.