procedure TMainForm.Button1Click(Sender: TObject);
var lMsg :String;
i:Integer;
begin
DataSetBroker1.DataSet.Open;
DataSetBroker1.DataSet.EmptyDataSet;
DataSetBroker1.DataSet.Edit;
ExcelToTable1.FileName :='c:\exceltotable1.xls';
// ExcelToTable1.DataSource :=TSQLDATASET(DataSetBroker1.DataSet);
ExcelToTable1.StartRow :=1;
ExcelToTable1.EndRow :=100;
//设置EXCEL的映射关系
ExcelToTable1.FieldMap.Clear;
for i:=1 to 100 do
begin
// if Business.Forms.ExcelFieldMapFunc.ShowFieldMapEditor(ExcelToTable1) then
ExcelToTable1.FieldMap.Add('DataSetBZSJJ1.zd'+SysUtils.IntToStr(i)+'=Sheet1['+SysUtils.IntToStr(i)+',0]');
end;
// if Business.Forms.ExcelFieldMapFunc.ShowFieldMapEditor(ExcelToTable1) then
ExcelToTable1.Execute(lMsg);