Exemple #1
0
 /// <summary>
 /// Gets called once on release start
 /// </summary>
 /// <returns>Returns a KfxReturnValue describing whether the action was successful</returns>
 public KfxReturnValue OpenScript()
 {
     try
     {
         return(KfxReturnValue.KFX_REL_SUCCESS);
     }
     catch (Exception e)
     {
         documentData.LogError(0, 0, 0, e.ToString(), "Kofax Capture Custom Export Connector", 0);
         return(KfxReturnValue.KFX_REL_ERROR);
     }
 }
 //**********************************************************************
 // Appends the specified exception in the Kofax error log
 //**********************************************************************
 private void LogException(ReleaseData data,
     Exception e)
 {
     if (data != null)
     {
         // Use the Kofax logging handler
         data.LogError(
             0,
             0,
             0,
             "Processing batch : " + data.BatchName + ". " + e.ToString(),
             e.Source,
             0
             );
     }
 }