1. I can fill data from Excel to DataSet like this:
OleDbConnection connection = new
OleDbConnection (@"Provider=Mic rosoft.Jet.OLED B.4.0;Data
Source=../../Book1.xls;Exten ded Properties=Exce l 8.0;");
connection.Open ();
OleDbCommand command =new OleDbCommand("S ELECT * FROM myRange1",
connection);
connection.Clos e();
OleDbDataAdapte r dataAdapter = new OleDbDataAdapte r();
dataAdapter.Sel ectCommand = command;
DataSet dataSet = new DataSet();
dataAdapter.Fil l(dataSet);
Then OK!!!
2. But I can't update it from dataset to Excel by:
connection.Open ();
dataAdapter.Upd ateCommand = new OleDbCommand("U PDATE myRange1 SET FirstName
= @FirstName, LastName = @LastName", connection);
dataAdapter.Upd ate(this.dataSe t);
connection.Clos e();
How can I do it???? :-(