如何将Excel表添加到控制台应用程序 [英] How to add Excel sheet to console application

查看:132
本文介绍了如何将Excel表添加到控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个人都可以解释在C#中添加excel文件的过程,对此有哪些要求?

是否需要在系统中安装MS Excel以在C#中使用Excel?

Can any one explain the process of adding excel file in C# and What are the requirements for that?
Is it necessary to install MS Excel in the system for using of Excel in C#

推荐答案

您可以使用ADO.Net从Excel安装Excel电子表格中读取数据,而不使用安装Excel。以下是示例,了解如何执行此操作。

You can read data from Excel spreadsheet without having Excel installed, using ADO.Net. Here is a sample for how to do this.

然而,你的问题有点模糊。既然你没有安装Excel,那你真的想做这些:

However, your question is a little vague. Since you do not have Excel installed, which of these do you really want to do:


  1. 读取Excel创建的XLS文件

  2. 编写将要由Excel读取的XLS文件。

  3. 使用Excel提供的计算或解决工具,而不实际使用Excel。

如果您澄清,您可能会得到更多有用的答案。

You may get more useful answers if you clarify.

这篇关于如何将Excel表添加到控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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