![](/img/trans.png)
[英].NET Deploying Office 2003 Redistributable Primary Interop Assemblies (o2003pia.msi)
[英]Use Office 2003 interop DLLs without installing the redistributable
我正在編寫一個需要讀取Excel文件的C#程序(.net 2.0)。 我知道我將不得不使用Microsoft.Office.Interop.Excel
。 我下載了O2003PIA.MSI
並使用7Zip O2003PIA.MSI
了DLL(未安裝)。 現在,當我添加對提取的EXCELPIA.DLL
引用時,它將引發以下錯誤:
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
我想將程序集部署為私有程序集,並且不希望最終用戶安裝可再發行組件。 我有什么依賴嗎?
我已經嘗試過添加對OFFICE.DLL
引用,但也無濟於事。
編輯1
我使用了一個叫做NPOI的東西,它工作得很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.