日期:2014-05-17 浏览次数:21403 次
1:abc
2:ddg
3:hello boy
4:what?
……
public class ExcelIO
{
private int _ReturnStatus;
private string _ReturnMessage;
/// <summary>
/// Execute return status
/// </summary>
public int ReturnStatus
{
get { return _ReturnStatus; }
}
/// <summary>
/// Execute return info
/// </summary>
public string ReturnMessage
{
get { return _ReturnMessage; }
}
public ExcelIO()
{
}
/// <summary>
/// Import excel to dataset
/// </summary>
/// <param name="fileName">Excel full path file name</param>
/// <returns>The dataset data</returns>
public DataSet ImportExcel(string fileName)
{
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
if (xlApp == null)
{
_Return