Beispiel #1
0
 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);
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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);
 }
Beispiel #4
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;
 }