将数据从Excel导入Windows应用程序 [英] import data from excel to windows app

查看:69
本文介绍了将数据从Excel导入Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将数据从excel导入Windows应用程序

how to import data from excel to windows app

推荐答案

有很多方法可以实现.

1.在File类中使用静态方法.适用于小文件.
2.使用OleDbConnection并查询文件.创建连接需要一些时间,但此后很快.
3.使用Interop.
4.使用流.

在MSDN上了解这些方法,然后选择最适合您的方法.
There are lots or ways of doing it.

1. Using static methods in the File class. Good for small files.
2. Using OleDbConnection and querying the file. Takes some time for create a connection but quite fast after that.
3. Using Interop.
4. Using streams.

Read about these ways on MSDN and chose the one that suites you the best.


这篇关于将数据从Excel导入Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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