• Ok, thank you Phil.

    Ok, thank you Phil.

  • Ok, thank you Phil.

    Double post for some reason, thanks :)

  • OCR Data

    I remember in Fortis if  you were to OCR a document it would add a page, or multiple pages, that would contain the OCR data in text format. You could then copy that data out and put it in an email or a Word document. Is there anything like that in DocuWare? Can we grab the OCR data when it is performed on a page/document?

    Thanks,
    Seth

  • No worries, I remember having

    No worries, I remember having this issues before and I cannot for the life of me remember what I did to resolve it. Here is the code that it does not like. I am taking the highlighted option, from the Listview and trying to pass it through for use of the stored document. So the user selects a File Cabinet, then when they hit a button it should store the data in the CSV file as a new data store for that File Cabinet that was selected. The error is occuring on the starred line for cabID

     

    string cabID = (fCabinet.SelectedItems)["File Cabinet"].ToString(); 

    *FileCabinet fileCabinet = cabID;*
    Document indexInfo = new Document();
    indexInfo.Fields = new List<DocumentIndexField>();
    indexInfo.Fields.Add(DocumentIndexField.Create("Contact", cell[1]));
    indexInfo.Fields.Add(DocumentIndexField.Create("Subject", cell[2]));
    Document uploadedDoc = fileCabinet.PostToDocumentsRelationForDocuments(indexInfo);

  • I was able to work on this a

    I was able to work on this a bit today, however, I am getting an error message "Cannot implicitly convert type String to DocuWare.Platform.ServerClient.FileCabinet. Any thoughts?

  • Gotcha, I am writing the File

    Gotcha, I am writing the File Cabinets to a Combox Box using the last line under the first section of code "fCabinet.Items.Add(fc.Name);"

    It displays quite well

     

    https://www.docuware.com/sites/default/files/forums-images/DropDown.JPG

  • Sure, what I have so far is a

    Sure, what I have so far is a Windows form that uses a test name and password to make my connection. It then has a drop down box that populates on form load to show the available file cabinet 

    ==============================================================================

     var conn = ServiceConnection.Create(uri, "BasicAdmin", "admin", "TestSrv");
                Organization org = conn.Organizations[0];

                var fileCabinet = org.GetFileCabinetsFromFilecabinetsRelation().FileCabinet;
                foreach (var fc in fileCabinet)
                    fCabinet.Items.Add(fc.Name);

    ==============================================================================

    I then have a button that processes a CSV file and hopefully will insert the data to create a data record

    ==============================================================================

    //Path for the CSV file.  
                    string csvPath = @"C:\Test.csv";

                    //Read the contents of CSV file.  
                    string csvData = File.ReadAllText(csvPath);

                    //Execute a loop over the rows.  
                    foreach (string row in csvData.Split('\n'))
                    {
                        //Creating array to read CSV into.
                        string[] cell = null;

                        if (!string.IsNullOrEmpty(row))
                        {
                            cell = row.Split(',');
                            int docID = Int32.Parse(cell[0]);

                            Document indexInfo = new Document();
                            indexInfo.Fields = new List<DocumentIndexField>();
                            indexInfo.Fields.Add(DocumentIndexField.Create("Contact", cell[1]));
                            indexInfo.Fields.Add(DocumentIndexField.Create("Subject", cell[2]));
                            Document uploadedDoc = fileCabinet.PostToDocumentsRelationForDocuments(indexInfo);
                        }

                    }

    ==============================================================================

     

    I hope that makes sense.

    Thanks

  • That is awesome, I was close

    That is awesome, I was close but did not get the Post command correct. I will post what I have when I get it working.

    Thanks,
    Seth

     

    EDIT: Well l was finally able to work on this for a bit and am not able to get "PostToDocumentsRelationForDocument" it is stating there is no definition for it. Digging around and will see what I can find.

  • Creating a Store Record through API

    I have recently been digging into the API using .NET and was wondering if there was a way to create a data record from data inside a CSV or XML file? I am able to store data + documents using the API but now I need to know if I can just store data.

     

    Thanks,
    Seth

  • That should be me, and yes

    That should be me, and yes that would be fine.

    Thanks