Click here to Skip to main content
15,944,136 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.
Updated 7-Sep-18 9:12am

I did a quick search at google and found this site that hosts some articles related to Excel in the context of ASP.NET:[^]
Share this answer
You can configure the sheet to pull data from the database. Google is your friend.

excel data connection - Google Search[^]
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