从WinForm获取数据到Excel [英] Get Data Into Excel from WinForm
问题描述
我建议引用Microsoft.Office.Interop.Excel。有关如何执行此操作的更多信息,请遵循本指南。
http://msdn.microsoft.com/en-us/library/dd264733.aspx
Ok, So I have a form, that is filled in with a customers address, purchase info etc. Now, I want to get that data into Excel, having a column for the quantities of each product purchased, the name of the person, their email, etc. Each customer would have their own row. My program is coded in C#, it is a winform. Now, I am a bit of a beginner and I have only put data into a ListBox before. Would it be easy to do ListBox to Excel or is there a better way to go about this?
I'd recommend referencing Microsoft.Office.Interop.Excel . For more information on how to do this follow this guide.
http://msdn.microsoft.com/en-us/library/dd264733.aspx
这篇关于从WinForm获取数据到Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!