Exemplo n.º 1
0
 public static void RemoveOcrRenditions(TrimMainObjectSearch forTaggedObjects)
 {
     foreach (var result in forTaggedObjects)
     {
         HP.HPTRIM.SDK.Record record = result as HP.HPTRIM.SDK.Record;
         if ((HP.HPTRIM.SDK.Record)record != null)
         {
             RemoveOcrRendition(record);
         }
     }
 }
Exemplo n.º 2
0
 public override void ExecuteLink(int cmdId, TrimMainObject forObject, ref bool itemWasChanged)
 {
     HP.HPTRIM.SDK.Record record = forObject as HP.HPTRIM.SDK.Record;
     if ((HP.HPTRIM.SDK.Record)record != null && links[0].MenuID == cmdId)
     {
         FolderBrowserDialog directorySelector = new FolderBrowserDialog()
         {
             Description = "Select a directory to place the electronic documents", ShowNewFolderButton = true
         };
         if (directorySelector.ShowDialog() == DialogResult.OK)
         {
             string outputPath = Path.Combine(directorySelector.SelectedPath, $"{record.Number}.{record.Extension}");
             record.GetDocument(outputPath, false, string.Empty, string.Empty);
         }
     }
 }
Exemplo n.º 3
0
        public override void ExecuteLink(int cmdId, TrimMainObject forObject, ref bool itemWasChanged)
        {
            HP.HPTRIM.SDK.Record record = forObject as HP.HPTRIM.SDK.Record;
            if ((HP.HPTRIM.SDK.Record)record != null)
            {
                switch (cmdId)
                {
                case MenuLinks.UpdateOcrRendition.LINK_ID:
                    RecordController.UpdateOcrRendition(record);
                    break;

                case MenuLinks.RemoveOcrRendition.LINK_ID:
                    RecordController.RemoveOcrRendition(record);
                    break;

                default:
                    break;
                }
            }
        }