首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

Porject Project1.exe raised exception class EOleException with mes解决思路

2012-12-30 
PorjectProject1.exeraisedexceptionclass EOleExceptionwithmes for i:0 to h dobeginfor j: 0 to l do

Porject Project1.exe raised exception class EOleException with mes
 for i:=0 to h do
  begin
    for j:= 0 to l do
    begin
      ExcelApp.Cells[i,j].value :='第一行' ;
      ShowMessage(ExcelApp.Cells[i,j].value);
      if Memo1.Lines.Strings[Memo1.Lines.Count-1] = ExcelApp.Cells[i,j].Value  then
      begin
        Memo2.Lines.Add('OK')
      end
      else
      begin
        Memo2.Lines.Add('SN没有扫描到!');
      end;
      end;
    end;

提示的错误如标题所示,请各位大侠帮我看看是怎么回事?怎么改 !先谢谢咯
[解决办法]
从Cells[1,1]开始,没有0
[解决办法]
2楼+1

热点排行