Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm working in c# MVC# , and I want to export data from some object in c# , into excel template which is on a server machine. Then i should save that file on my local machine. I read a lot on that subject and i find out that i can't use Interop library because template is on server . Please help, i dont know the solution.
Posted
Comments
Sinisa Hajnal 2-Dec-14 2:10am    
Winforms or web? If web, template obviously HAS to be on the server. But you can send the finished Excel sheet to the client...if it is winforms, you can copy the template from the server, use it and save the file locally. Or simply deploy the template with the application so that each installation has its own.
GeekGirl90 4-Dec-14 1:59am    
I am working on web application.

1 solution

Use open xml SDK for the same,

Please refer below link, and

Using ASP.NET MVC and the OpenXML API to Stream Excel Files[^]


based on this there is a large project called EPplus, take help from there

http://epplus.codeplex.com/[^]
 
Share this answer
 
Comments
GeekGirl90 18-Dec-14 5:37am    
This works! Thank you!

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