public void ReadFromXls(string tableName, string xlsFileName, int beginrow, int begincell) { DataTable table = this.RealDataSet.Tables[tableName]; DataFileReader reader = new DataFileReader(table, DataFileReaderType.Xls); reader.Read(xlsFileName, beginrow, begincell); }
public void ReadFromXls(int tableIndex, string xlsFileName, int beginrow, int begincell) { DataSet ds = this.InnerDataSet; DataTable table = ds.Tables[tableIndex]; DataFileReader reader = new DataFileReader(table, DataFileReaderType.Xls); reader.Read(xlsFileName, beginrow, begincell); this.InnerDataSet = ds; }
public void ReadFromTxt(string tableName, string txtFileName) { DataTable table = this.RealDataSet.Tables[tableName]; DataFileReader reader = new DataFileReader(table, DataFileReaderType.Txt); reader.Read(txtFileName,0,0); }
public void ReadFromTxt(string tableName, string txtFileName) { DataSet ds = this.InnerDataSet; DataTable table = ds.Tables[tableName]; DataFileReader reader = new DataFileReader(table, DataFileReaderType.Txt); reader.Read(txtFileName, 0, 0); this.InnerDataSet = ds; }