用ADO向excel批量導入數

和前面一篇用OleDB的方法類似,我們可以用ADO從RecordSet對象向Excel批量插入數據,這個方法無法自動複製字段名。 我們需要引用ADO和Excel的com對象 參考代碼: C# code using System; using System.Collections.Generic; using System.Text; using System.Reflection; using E
相關文章
相關標籤/搜索