Forum Discussion

cjfoeller0404's avatar
cjfoeller0404
Occasional Contributor
5 days ago
Solved

How to Configure Relative Filepath for Stores|Tables Excel Sheet Import?

What is the process in which to use a relative file path to be able to import an Excel Sheet into a Stores|Tables object so that the table can be updated regardless of where in the file directory the...
  • rraghvani's avatar
    5 days ago

    Assuming your .xlsx file is in Project\Stores\Files

    Then you can use Project.Path together with the remaining path

    // Using the standard open file dialog, to select a file
    Sys.Browser(settings.GetBrowser()).WaitWindow("#32770", "Open", 1, 5000);
    Sys.Browser(settings.GetBrowser()).Window("#32770", "Open", 1).OpenFile(Project.Path + "Stores\\Files\\WebcoverAddNewFile.xlsx");