Accusoft.MICRXpress1.ActiveX Accusoft Pegasus
Determine if the Component Successfully Recognized MICR Text in the Image
Send Feedback  
How To > Determine Results > Determine if the Component Successfully Recognized MICR Text in the Image

Glossary Item Box

Determine if the Component Successfully Recognized MICR Text in the Image

If the call to AnalyzeField or AnalyzeFieldPicture method was successful in finding a MICR text in the specified zone, then the method will return a value of S_OK. If the Reader did not find any MICR text in the specified zone, then the call to AnalyzeField method will return a status of MX_ErrorCode_NoResult.

If RaiseExceptions is set to True and the MICR text is not found in the specified zone, then an exception is thrown.
VB Example (using exceptions) Copy Code
On Error GoTo ErrorHandler
   myMICRXpressObject.AnalyzeField myHDib
   'call to analyzeField was successful
   'now we can inspect the results
  GoTo Cleanup
ErrorHandler:
   IF (myMICRXpressObject.ErrorCode = MX_ErrorCode_NoResult) Then
      'handle error appropriately
  End If
Cleanup:
   'perform resource cleanup

 

©2009. Pegasus Imaging Corporation, DBA Accusoft Pegasus. All Rights Reserved.