如何在服务器计算机上使用excel模板进行expot? [英] How do I expot to excel template on server machine?

查看:100
本文介绍了如何在服务器计算机上使用excel模板进行expot?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#MVC#,我想将数据从c#中的某个对象导出到服务器机器上的excel模板中。然后我应该将该文件保存在我的本地计算机上。我在这个主题上阅读了很多,我发现我不能使用Interop库,因为模板在服务器上。请帮助,我不知道解决方案。

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.

推荐答案

使用open xml SDK相同,



请参考以下链接,并且



使用ASP.NET MVC和OpenXML API来传输Excel文件 [ ^ ]





基于此有一个名为EPplus的大型项目,从那里获得帮助



http://epplus.codeplex.com/ [ ^ ]
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/[^]


这篇关于如何在服务器计算机上使用excel模板进行expot?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆