首先在工程中需要添加对Microsoft Excel office 11.0 object的引用 生成excel的类代码如下 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace LvwToExcel { class CExcel { /// <summary> …
/// <summary> /// 类说明:Assistant /// 更新网站:[url=http://www.sufeinet.com/thread-655-1-1.html]http://www.sufeinet.com/thread-655-1-1.html[/url] /// </summary> using System; using System.IO; using System.Data; using System.Collections; using System…