摘要:
EXCEL表用c#来读 using System; using System.IO; using System.Web; using System.Web.SessionState; using NickLee.Common.ExcelLite; namespace excel1 { /// /// excel 的摘要说明。 /// public class excel { publ... 阅读全文
摘要:
C#如何向EXCEL写入数据 我按着微软技术支持网上的方法写入数据:使用“自动化”功能逐单元格传输数据,代码如下: // Start a new workbook in Excel. m_objExcel = new Excel.Application(); m_objBooks = (Excel.Workbooks)m_objExcel.Workbooks; m_objBook = (Excel... 阅读全文
摘要:
1. 建立连接 //注意,"Extended Properties"是必需的 string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("Book1.xls") + ";Extended Properties=\"Excel 8.0;\""; OleDb... 阅读全文