从代码修改Excel文件 [英] Modify Excel File From Code

查看:60
本文介绍了从代码修改Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp.net 4网站上的iam workin
我在服务器上上传了一些Excel文件
我需要根据用户条目做什么
我从代码中对该excel文件进​​行了一些修改,但未显示excel文件
例如,如果用户写入了归档的数量5
我转到excel文件将单元格b4更新为5
像这样的东西

我尝试使用Microsoft.Office.Interop.Excel
但问题是托管我的网站的服务器
没有MS excel安装在其上
那么我如何对该文件进行修改
等待任何帮助

解决方案

使用以下组件进行Excel处理: http: //epplus.codeplex.com/ [ ^ ]

iam workin on asp.net 4 web site
i have some excel files uploaded on server
what i need to do depending on users entry
i make some modification on that excel file from code with out displaying the excel file
for example if user write in quantity filed 5
i go to excel file update cell b4 to 5
something like that

i try to work using Microsoft.Office.Interop.Excel
but the problem is the server that host my web site
no ms excel install on it
so how i can make modification on that file
waiting for any help

解决方案

Use a component like the following for Excel processing: http://epplus.codeplex.com/[^]


这篇关于从代码修改Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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