TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Krishnan Suba
1.7k
82
15.1k
I download the data from Address table to excel file
Aug 13 2019 3:27 AM
I used below below code for download the data form Address table to excel file, excel file will be downloading but data is not coming.
var addresses = AddressInfoProvider.GetAddresses() .Columns("AddressName", "AddressLine1", "AddressLine2", "AddressCity", "AddressZip", "AddressPhone") ;
foreach (AddressInfo addressInfo in addresses)
{
string AddressName = addressInfo.AddressName;
string AddressLine1 = addressInfo.AddressLine1;
string AddressLine2 = addressInfo.AddressLine2;
string AddressCity = addressInfo.AddressZip;
string AddressPhone = addressInfo.AddressPhone;
}
var websitePath = System.Web.HttpContext.Current.Server.MapPath("~/");
var FileName = "addresses-upload-template.xlsx";
var exportFilePath = FileHelper.GetFullFilePhysicalPath(ImportExportHelper.GetSiteUtilsFolder()) + FileName;
WriteFileToResponse(FileName);
Reply
Answers (
1
)
I'm getting errors
I’m getting errors