asp.net - How to get data in excel file from gridview object or database -
i have data in database in gridview object. , want store data in excel file using of these 2 object in web application. should do?
the simplest way write data plain text csv file. easy write to, other text file, , can open them in excel. csv files have no formatting, won't able set fonts, column widths, etc.
if want create true excel file (.xlsx), want using openxml sdk. can read here: http://msdn.microsoft.com/en-us/library/hh180830%28v=office.14%29.aspx
Comments
Post a Comment