can someone help me, how to using verificationdialog using vb.net (i am a newbie in both vb.net and C#) ?

using online converter tool to convert from the sample project (visual components - hello with flexicapture project(C#) to vb.net

---------------------verificationdialog.vb ' © ABBYY. 2011. ' SAMPLES code is property of ABBYY, exclusive rights are reserved. ' DEVELOPER is allowed to incorporate SAMPLES into his own APPLICATION and modify it ' under the terms of License Agreement between ABBYY and DEVELOPER.

' Product: ABBYY FlexiCapture Engine 9.0

Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Text Imports System.Windows.Forms

Imports FCEngine

Namespace Sample Public Partial Class VerificationDialog Inherits Form Private batch As IBatch

    Public Sub New(engine As IEngine, _batch As IBatch)
        InitializeComponent()

        ' Initialize VerificationView component
        verificationView.Engine = engine
        batch = _batch
    End Sub

    Private Sub VerificationDialog_Load(sender As Object, e As EventArgs)
        Try
            ' We will automatically start verification on load
            verificationView.StartVerification(batch, Nothing)
        Catch ex As Exception
            ' This method will fail if verification is not allowed by license
            MessageBox.Show(ex.Message)
            Close()
        End Try
    End Sub

    Private Sub verificationView_VerificationCompleted(sender As Object, e As FCEngine.VisualComponents.VerificationCompletedEventArgs)
        ' And close the form when verification is complete
        Close()
    End Sub

    Private Sub cleanUp()
        ' This method is called from Dispose for proper cleanup. See VerificationDialog.Designer.cs

        ' !!! Do not forget to propely clean up after verification.
        ' During verification a lot of documents can be opened which need to be closed in timely manner.
        verificationView.Dispose()
    End Sub
End Class

End Namespace

-------------------- main form with verify button Private Sub verifyButton_Click(sender As Object, e As EventArgs) Using dialog As New VerificationDialog(engine, batch) dialog.ShowDialog() End Using End Sub


the error message : the verifybutton event on click fail with message too many arguments to public sub new()

rgds

Julius

asked 17 Sep '14, 23:44

julius's gravatar image

julius
113

edited 17 Sep '14, 23:49

Please, provide us with the following additional data to help us investigate the issue: 1. Your product serial number; 2. Entire project in vb.net 3. Image you process when getting an exception; 4. Screenshot of error message (exception message), you receive.

You could send this information to our e-mail SDK_Support@abbyy.com.

(02 Oct '14, 17:54) SDK_support ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 17 Sep '14, 23:44

Seen: 1,899 times

Last updated: 03 Oct '14, 09:54

Related questions

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal