Click here to Skip to main content
14,640,071 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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

excel data connection - Google Search[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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[^]
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100