我想用 ADO to 连接 excle2013, 但是报下面的错误,麻烦哪位大神帮忙看看哪里错了。Can’t found installed ISAM.
[dcc32 Error] Unit1.pas(31): E2233 Property 'ConnectionString' inaccessible hereConn.ConnectionString:='Provider=Microsoft.ACE.OLEDB.15.0;Data Source=C:\a01\result.xls;Extended Properties=excle 15.0;Persist Security Info=true;'

解决方案 »

  1.   

    你自己查一下,有15.0这么高的版本吗?我用的是Microsoft.ACE.OLEDB.12.0;另外excel拼写错误。ConnectionString := 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=' + Edit7.text +';Extended Properties=Excel 12.0;Persist Security Info=False;';
      

  2.   

    主要是,EXCEL2013 是64位的程序。所以你把程序生成X64,然后因该没问题了。我是用 Delphi XE5 的。
      

  3.   

    请问你的delphi XE中有activeX的组件板吗? 我安装了MSCcomm32控件但是找不到。
      

  4.   

    D7的sever里面有自带的office服务器的,我用excel2000,可以操作2010版的excel。
    再高版本的好像不可用了,高版本的delphi暂时还未使用过