SkipDocumentReprocessingAfterMerging

By default, when workdocs are combined in the AppendWorkdoc event, the new combined document is classified and extracted after merging. Set this named property in the AppendWorkdoc event to True to skip reprocessing. In this case, the new combined document has the classification and extraction results of pLastWorkdoc after merging.

Sample Code

The following sample code shows how to skip reprocessing.

Private Sub ScriptModule_AppendWorkdoc(pLastWorkdoc As SCBCdrPROJLib.ISCBCdrWorkdoc, pCurrentWorkdoc As SCBCdrPROJLib.ISCBCdrWorkdoc, pAppendType As SCBCdrPROJLib.CdrMPType)
   ' Merge pLastWorkdoc and pCurrentWorkdoc if they are of same class "CLASS_A"
   If pLastWorkdoc.DocClassName = "CLASS_A" And pCurrentWorkdoc.DocClassName = "CLASS_A"
      pAppendType = CdrSubseqPage
      ' The new combined document usually does not need to be classified/extracted
      pLastWorkdoc.NamedProperty("SkipDocumentReprocessingAfterMerging") = True
   End If
End Sub