Click here to Skip to main content
15,921,174 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I have an Template Folder in which i have an Excel Sheet. I want to extract data from database and export it to Excel Sheet. Every time i click Export a copy of the Excel sheet in Template folder should be made and the data should be exported to the copy of the excel sheet and the sheet with data should get downloaded. Can this be done in C# ASP.Net Web Application??

What I have tried:

I tried a lot of thing but i could get only download in grid format or the excel sheet in the template folder gets updated but instead data should go in copy of excel sheet and should get downloaded.
Posted
Updated 7-Sep-18 9:12am
v2

You can configure the sheet to pull data from the database. Google is your friend.

excel data connection - Google Search[^]
 
Share this answer
 
I did a quick search at google and found this site that hosts some articles related to Excel in the context of ASP.NET: https://www.aspsnippets.com/Categories/Excel.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900