用ADO向Excel批量導入數據

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