基于ASP.NET表单输入在IIS上生成Excel文件 [英] Generating excel files on IIS based on ASP.NET Form input
问题描述
大家好,
我正在尝试建立一个网站,其中使用了几个文本框进行输入,在这些框填充文本并按下按钮后我需要特定的Excel / word文件生成并通过电子邮件发送。
一切似乎都很简单,除了....我知道的唯一出路就是使用Microsoft.Interop类,但这需要用户有MS Office安装,这是一个市长问题。
有没有人知道更好的方法吗?
PS:文件应该是xlsx和docx(较新的格式)。
提前谢谢!
我已经解决了我自己 - 答案就在这里:
http://epplus.codeplex.com/ [ ^ ]
非常感谢epplus开发人员。
Hello guys,
I am trying to build a site where used has several text boxes for input and after these boxes are filled with text and a button is pressed I need specific excel/word file to be generated and sent vie e-mail.
Everything seems to be easy, except.... The only way out I know would be to use Microsoft.Interop class, but this would require the user to have MS Office installed, which a mayor problem here.
Does anyone know a better way out of this?
P.S.: the files should be xlsx and docx (the newer format).
Thanks in advance!
I have solved it myself - the answer is here:
http://epplus.codeplex.com/[^]
Big THANKS goes to epplus developer.
这篇关于基于ASP.NET表单输入在IIS上生成Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!