To insert a custom script into the Document_PreExtract and Document_Validate events, complete the following steps.
Open
Intelligent Capture Designer.
In
Definition mode, in the
Class view, highlight
CustomBaseClass, then right click and select
Show script.
Copy the following script into the script window.
Private Sub Document_PreExtract(pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc)
If InStr(UCase(ScriptModule.ModuleName), cVerifier) Then
gblVerifierAsServer = True
Else
gblVerifierAsServer = False
End If
fnGetClassResultsMatrix(pWorkdoc)
fnReporting(pWorkdoc, "DOCUMENTPREEXTRACT")
End Sub
Private Sub Document_Validate(pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc, pValid As Boolean)
gblVerifierAsServer = False
If UCase(ScriptModule.ModuleName) <> cVerifier Then
fnReporting(pWorkdoc, "DOCUMENTVALIDATESERVER")
Else
fnReporting(pWorkdoc, "DOCUMENTVALIDATEVERIFIER")
End If
End Sub