Hi,
You can use below code to set your download location to any folder of your machine.
var addresses = AddressInfoProvider.GetAddresses().Columns("AddressName", "AddressLine1",
"AddressLine2", "AddressCity", "AddressZip", "AddressPhone");
string myPath = @"D:/DemoFilePath/"; //Can set your desired path here.
var path = Path.Combine(myPath, "addresses-upload-template.xls");
var dataExportHelper = new DataExportHelper(addresses.Result);
using (System.IO.FileStream output = new System.IO.FileStream(path, FileMode.Create))
{
dataExportHelper.ExportData(DataExportFormatEnum.XLSX, output);
}
if (home == null)
{
return HttpNotFound();
}