excel导入出错问题
Exception Details: System.Data.OleDb.OleDbException: 'YSDTemplate$' 不是一个有效名称。请确认它不包含无效的字符或标点,且名称不太长。
Source Error:
Line 79: oledbconn.Open();
Line 80: OleDbCommand oledbcom=new OleDbCommand("select * from [YSDTemplate$]",oledbconn);
Line 81: OleDbDataReader oledbdr=oledbcom.ExecuteReader(CommandBehavior.CloseConnection);
Line 82:
Line 83: while(oledbdr.Read())
坐等帮助,谢谢各位