I used for below code for download the data to excel file from COM_Address, the file is downloading but empty file only not getting the data.
AddressInfo address = AddressInfoProvider.GetAddresses();
                if (address != null)
                {
                    var websitePath = System.Web.HttpContext.Current.Server.MapPath("~/");
                    var FileName = string.Format("addresses-upload-template.xlsx");
                    var exportFilePath = FileHelper.GetFullFilePhysicalPath(ImportExportHelper.GetSiteUtilsFolder()) + "Export\" + FileName;
                    WriteFileToResponse(websitePath, FileName, exportFilePath);
                }