摘要:
private DataSet InExecl() { //string filename = get.filenames; //string filename =get.filenames ; string filename = Label23.Text; DataSet ds = new DataSet(); string connStr = "Provider=Microsoft.Ace.OleDb.12.0;Data Source=" + Server.MapPath("up_product_store" + "\\" + f 阅读全文
posted @ 2010-08-27 22:01
小锋神
阅读(312)
评论(0)
推荐(0)
摘要:
SELECT TOP 100 PERCENT MAX(DISTINCT id) AS id, product_no, color, color2, product_type, SUM(number4) AS number, SUM(CASE WHEN ((product_size = '34' AND product_class = '女鞋') OR (product_size = '38' AND product_class = '男鞋') OR (product_class NOT IN ('女鞋', ' 阅读全文
posted @ 2010-08-27 21:56
小锋神
阅读(533)
评论(0)
推荐(0)
摘要:
.NET 读取Excel 2007的xlsx文件和读取老的.xls文件是一样的,都是用Oledb读取,仅仅连接字符串不同而已。读取xlsx 用的是Microsoft.Ace.OleDb.12.0;具体操作方法如下:public static DataTable GetExcelToDataTableBySheet(string FileFullPath, string SheetName){ //string strConn = "Provider=Microsoft.Jet.OleDb.4.0;" + "data source=" + FileFull 阅读全文
posted @ 2010-08-27 13:00
小锋神
阅读(5773)
评论(2)
推荐(3)

浙公网安备 33010602011771号