Skip to main content
Kofax

Reject and Skip without showing a Message Box in a VB.NET Validation Script

18675
QAID # 18675 Published

Question / Problem:

In a VB.NET Validation Script, how can I perform a Reject & Skip without showing a Message Box?

Answer / Solution:

In the Document PreProcessing Event, you can:

Private Sub SimpleDoc1_DocumentPreProcessing(sender As Object,
                                e As Kofax.AscentCapture.Scripting.PreDocumentEventArgs)
                                Handles Me.DocumentPreProcessing
    e.Document.Rejected = True
    e.SaveAndSkip = True
End Sub

Appplies to:

Product Version
CAPTURE 10.0
  10.1
  10.2
  11.0