Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }