CopyToClipBoard Example VB

This example demonstrates how OCR results can be output to the clipboard instead of to an output file of the supported types.

Private Sub cmdCopyToClip_Click()
    'If the output type has been set to Text Document, then copy the
    'output to the clipboard. Else save it to a document and launch the
    'associated application.
    If Imgocr1.OutputType = wiAsciiText Then
        Imgocr1.CopyToClipBoard = True
    Else
        Imgocr1.OutputFile = "c:\my documents\instructions"
        Imgocr1.LaunchApplication = True
    End If
        Imgocr1.StartOcr 'Begin OCR process
End Sub