如题,谢谢

解决方案 »

  1.   

    Workbook Open(
    [In] string Filename, 
    [In, Optional] object UpdateLinks, 
    [In, Optional] object ReadOnly, 
    [In, Optional] object Format, 
    [In, Optional] object Password,                  //<----
    [In, Optional] object WriteResPassword, 
    [In, Optional] object IgnoreReadOnlyRecommended, 
    [In, Optional] object Origin, 
    [In, Optional] object Delimiter, 
    [In, Optional] object Editable, 
    [In, Optional] object Notify, 
    [In, Optional] object Converter, 
    [In, Optional] object AddToMru, 
    [In, Optional] object Local, 
    [In, Optional] object CorruptLoad
    );
      

  2.   

    [Quote=引用 3 楼 gomoku 的回复:]
    你好,可以说说具体用法吗?谢谢
    还有就是能不能用Oledb来读取呢?没有密码的是可以的
      

  3.   

    下面引用是微软KB257819的原文(我不知道是否有新的进展):You Cannot Open a Password-Protected WorkbookIf the Excel workbook is protected by a password, you cannot open it for data access, even by supplying the correct password with your connection settings, unless the workbook file is already open in the Microsoft Excel application.