如何在.net Windows窗体中上载Excel文件 [英] How to Upload Excel Files in .net Windows Forms

查看:197
本文介绍了如何在.net Windows窗体中上载Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何上传.net Windows窗体中的Excel文件

并上传我希望维护数据/数据集的数据





i在asp.net中完成这一个

但是如何做这个是Windows Forms

How to Upload Excel Files in .net Windows Forms
and uploading data i want to maintain datatable/dataset


i done this one in asp.net
but how to do this one is windows Forms

推荐答案

使用openfiledialog,get选择的文件名并使用File.Open()打开它,并读取字节
use openfiledialog, get the selected filename and open it with File.Open(), and read the bytes


这篇关于如何在.net Windows窗体中上载Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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