如何将excel文件上传到服务器上的gridview。 [英] How to upload excel file to the gridview on server.

查看:54
本文介绍了如何将excel文件上传到服务器上的gridview。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我有一个项目,我在那里阅读excel表并在网格视图上显示,这在我的本地系统上运行良好,但是当我托管应用程序时在服务器上,在服务器上它不工作。



有没有解决方案请帮忙。

Hello

I have a project where i read the excel sheet and show on a grid view which is nicely working from my local system but when i host the application on the server , on the server it is not working.

Is there any solution then please help.

推荐答案

我想你的解决方案有3个步骤。



1.将Excel文件上传到服务器

2.使用Microsoft。 Office.Interop.Excel读取Excel文件的内容

3.将数据填充到GridView







服务器需要安装Excel,如果您使用的是Microsoft.Office.Interop.Excel
I guess there are 3 steps in your solution.

1. Upload the Excel file to server
2. Use Microsoft.Office.Interop.Excel to read the content of Excel file
3. Populate the data to a GridView



The server needs the Excel to be installed, if you are using Microsoft.Office.Interop.Excel


这篇关于如何将excel文件上传到服务器上的gridview。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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