AnsweredAssumed Answered

Getting Latest and Opening from Standalone C# API

Question asked by Sean Donnelly on Apr 5, 2017
Latest reply on Apr 7, 2017 by Sean Donnelly

I am having issues opening a file via stand-alone application in EPDM API. I want to get latest on that pre-determined file and open it.


          IEdmVault7 vault2 = null;

            if (vault1 == null)


                vault1 = new EdmVault5();


            vault2 = (IEdmVault7)vault1;



            if (!vault1.IsLoggedIn)


                vault1.LoginAuto("FocalPoint Vault", this.Handle.ToInt32());




            IEdmSearch5 Search = default(IEdmSearch5);

            Search = (IEdmSearch5)vault2.CreateUtility(EdmUtility.EdmUtil_Search);



            Search.FileName = "TemplatesCode.exe";



            IEdmSearchResult5 Result = default(IEdmSearchResult5);

            Result = Search.GetFirstResult();



            IEdmFolder5 srcFolder = null;

            vault2.GetFileFromPath(Result.Path, out srcFolder);