如何将数据从Excel复制到文本文件 [英] How to Copy data from excel to text file
本文介绍了如何将数据从Excel复制到文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows应用程序,我想按下按钮,使用vb.net将数据从Excel文件复制到文本文件。在这个文件中,我有多个工作表,如sheet1,sheet2,sheet3,我希望将每个工作表中的数据复制到另一个文本文件。
I have a windows application that I want on button click to copy data from an Excel file to Text file using vb.net. In this file I have multiple sheets like sheet1, sheet2, sheet3 and I want the data in each sheet to be copied to a different text file.
推荐答案
要使用Excel文件,您可以使用Office Interop程序集或Open XML SDK。
请参阅我以前的答案:如何从MS Visual Studio 2010中的添加引用添加microsoft excel 15.0对象库 [ ^ ]。
另见这一个:使用Open XML创建基本的Excel工作簿 [ ^ ] 。
-SA
To work with Excel files, you can use either Office Interop assemblies or Open XML SDK.
Please see my past answer: How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010[^].
See also this one: Creating basic Excel workbook with Open XML[^].
—SA
这篇关于如何将数据从Excel复制到文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文