W
wanfangme
Unregistered / Unconfirmed
GUEST, unregistred user!
OleContainer1.CreateObjectFromFile('D:/Documents and Settings/test/桌面/111.xls',false);
form1.OleContainer1.run;
OleContainer1.doVerb(-1);
Olecontainer1.AutoActivate:=aaGetFocus;
OleContainer1.SetFocus;
Cur_WorkBook:=OleContainer1.OleObject.Application.WorkBooks.Item[1];
Cur_WorkSheet:=Cur_WorkBook.WorkSheets[1];
//Cur_WorkSheet.Cells[1,1]:=1;
//下面运行报错
I:=OleContainer1.OleObject.Application.ActiveCell.row;
J:=OleContainer1.OleObject.Application.ActiveCell.column;
form1.OleContainer1.run;
OleContainer1.doVerb(-1);
Olecontainer1.AutoActivate:=aaGetFocus;
OleContainer1.SetFocus;
Cur_WorkBook:=OleContainer1.OleObject.Application.WorkBooks.Item[1];
Cur_WorkSheet:=Cur_WorkBook.WorkSheets[1];
//Cur_WorkSheet.Cells[1,1]:=1;
//下面运行报错
I:=OleContainer1.OleObject.Application.ActiveCell.row;
J:=OleContainer1.OleObject.Application.ActiveCell.column;