源码简介: |
Excel是微软公司办公自动化套件中的一个软件,他主要是用来处理电子表格。Excel以其功能强大,界面友好等受到了许多用户的欢迎。在办公的时候,正是由于Excel的这么多的优点,许多重要的数据,往往以Excel电子表格的形式存储起来。这样就给程序员带来了一个问题,虽然Excel功能比较强大,但毕竟不是数据库,在程序中处理数据库中的数据比其处理Excel表格中的数据容易许多。那么如何用Visual C#读取Excel表格中的数据?在以前用Delphi编程的时候,对于不同的用户,他们对于打印的需求是不一样的,如果要使得程序中的打印功能适用于每一个用户,可以想象程序设计是十分复杂的。这时想到Excel,由于Excel表格的功能强大,又由于几乎每一台机器都安装了它,如果把程序处理的结果放到Excel表格中,这样每一个用户就可以根据自己的需要在Excel中定制自己的打印。这样不仅使得程序设计简单,而且又满足了诸多用户的要求,更加实用了。那么用Visual C#如何调用Excel,如何又把数据存放到Excel表格中?这是本人开发一套软件时总结的资料。-Excel is a Microsoft office automation software package, he is mainly used to deal with spreadsheets. Excel its powerful, user-friendly, such as has been welcomed by many users. Time in the office, it is precisely because so many Excel advantages, many important data, often in the form of Excel spreadsheets stored. This gives the programmer with a problem, although more powerful Excel functions, but not the database, in the proceedings deal with the data in the database than its deal with the data in Excel spreadsheet much easier. Then how to use Visual C# to read the data in Excel spreadsheet? Used in previous Delphi programming time for different users, their demand for print is not the same as, if the process to make printing function applied to each user, it is conceivable that program design is very complex. Then think of Excel, as a result of powerful Excel spreadsheet, and because almost every machine has installed it, if we deal with the results of procedures on the Excel spre
|