AnsweredAssumed Answered

GetFileCopy method...

Question asked by Christina Seay on Dec 2, 2008
Latest reply on Dec 3, 2008 by Christina Seay
I am trying to retrieve a copy of a file to my local cache and I'm using GetFileCopy to do it.

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:

 

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, "")

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.

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.

Outcomes