Including an Excel template in a package

Hey

I have an excel template in my project that i want to refer directly and include in my package when I publish. How do I do that so that it is not depended on a defined Path on a machine

@josephatomwanzia
lets assume there is a folder data within in your UiPath project.
Instead of the full path just reference e.g. ExcelApplication Scope the file by:
“data\yourExcelFileName.xlsx”

Another option could be:
Path.Combine(Environment.CurrentFolder, “data”, “yourExcelFileName.xlsx”)

Thanks, Worked Perfectly

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.