ad
2006-05-07 21:39:54 UTC
Excel €º©w²Ä€@Ó€u§@ªíªºŠWºÙ¬°Sheet1
§ÚÌ¥i¥H¥Î¥H€Uªºµ{Š¡œXŪšúsheet1€ºªºžê®Æ
string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" +
Server.MapPath("Book1.xls") + ";Extended Properties=Excel 8.0";
OleDbConnection conn = new OleDbConnection(strConn);
OleDbDataAdapter adp = new OleDbDataAdapter("Select * from [Sheet1$]",conn);
DataSet ds = new DataSet();
....
ŠýŠpªG²Ä€@Ó€u§@ªíªºŠWºÙ¥ŒªŸ
ŠpŠóŪšú³o²Ä€@Ó€u§@ªí€ºªºžê®Æ©O?
§ÚÌ¥i¥H¥Î¥H€Uªºµ{Š¡œXŪšúsheet1€ºªºžê®Æ
string strConn = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" +
Server.MapPath("Book1.xls") + ";Extended Properties=Excel 8.0";
OleDbConnection conn = new OleDbConnection(strConn);
OleDbDataAdapter adp = new OleDbDataAdapter("Select * from [Sheet1$]",conn);
DataSet ds = new DataSet();
....
ŠýŠpªG²Ä€@Ó€u§@ªíªºŠWºÙ¥ŒªŸ
ŠpŠóŪšú³o²Ä€@Ó€u§@ªí€ºªºžê®Æ©O?