When my program tries to access the excel file, it can't find it.
Can anyone tell me if there is something wrong with my code:
I'm not sure if I'm getting the code wrong, or getting something else wrong. I've got this code on the "form_load" part of the program. So it should be copying it down to the local cache as soon as the form loads.
Dim GetExcel As IEdmFile5 Dim ExcelFolder As IEdmFolder5 ExcelFolder = vault.GetFolderFromPath(vault.RootFolderPath + "\_Administrator Files\") GetExcel = ExcelFolder.GetFile("ITEM.XLS") GetExcel.GetFileCopy(Me.Handle.ToInt32, 0, ExcelFolder.ID, EdmGetFlag.EdmGet_Simple, "")
This program runs fine after the user checks the file out and checks it back in, so it seems like it's an issue with it not being in the local cache.