首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在同一项目中使用Spire.doc、Spire.xls和Spire.Presentation

在同一项目中使用Spire.doc、Spire.xls和Spire.Presentation
EN

Stack Overflow用户
提问于 2014-07-07 19:07:24
回答 2查看 4.7K关注 0票数 0

是否可以在同一项目中使用这3种产品?

刚刚下载的每个免费版本和Spire.PDF.dll版本是不同的,并导致错误"System.IO.FileLoadException: Could not load file or assembly 'Spire.Pdf, Version=3.0.10.54040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"“。

Spire.doc使用3.0.10.54040版本,Spire.Presentation使用3.0.49.58040版本

我试过用dependentAssembly

代码语言:javascript
运行
复制
  <dependentAssembly>
    <assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-3.0.10.54040" newVersion="3.0.49.58040" />
  </dependentAssembly>

但是有个错误

代码语言:javascript
运行
复制
TypeLoadException: Could not load type 'sprẒ' from assembly 'Spire.Pdf,
Version=3.0.49.58040, Culture=neutral, PublicKeyToken=663f351905198cb3'.
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-08 01:35:19

单独的三个库不能在同一个项目中使用。您可以下载免费的Spire.Office,包括Spire.Doc、Spire XLS、Spire.Presentation、Spire.PDF、Spire.DataExport、Spire.PDFViewer、Spire.DocViewer等库。使用Spire.Office,您可以在同一个项目中使用Spire.Doc、Spire.Presention和Spire.Xls的库。

票数 0
EN

Stack Overflow用户

发布于 2020-01-22 13:49:33

清除“dependentAssembly”部分,该部分完全引用“app.config”文件中的Spire Dlls。这才是对我有用的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24618013

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档