Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri May 13, 2016 9:05 am

My goal is to extract plain text from .doc, .xls etc.

So I've installed FreeSpire.Doc (5.5.0), FreeSpire.XLS (7.9.0) and FreeSpire.Presentation (2.1.0) from nuget to my project. Since these libraries depend on Spire.Pdf of different versions I've been attempting to get things working with assembly redirects:

Code: Select all
<dependentAssembly>
  <assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" culture="neutral" />
  <bindingRedirect oldVersion="0.0.0.0-3.6.230.55040" newVersion="3.6.230.55040" />
</dependentAssembly>


and I've also tried something like, manually copying the dlls to a folder.

Code: Select all
<dependentAssembly>
  <assemblyIdentity name="Spire.Pdf" publicKeyToken="663f351905198cb3" />
  <codeBase version="3.4.108.54040" href="..\lib\SpirePdf3.4.108.54040\Spire.Pdf.dll" />
  <codeBase version="3.6.230.55040" href="..\lib\SpirePdf3.6.230.55040\Spire.Pdf.dll" />
</dependentAssembly>


Sadly, none of these fully work. I get doc to work but then XLS will fail, or sometimes the other way around.
Ideally I'm hoping for a solution where I can use nuget and only edit the config should there be updates, rather than having to copy libraries forth and back.

Does anyone know a way of achieving this?

frung
 
Posts: 1
Joined: Fri May 13, 2016 8:49 am

Fri May 13, 2016 9:14 am

Hi,

Thanks for your posting.
Please download Spire.Office package and get the related dlls from it when using multiple apis(Spire.Doc, Spire.Xls, Spire.Presentation) in one project.
We can offer you a 1-month free license for Spire.Office to remove the warning message. Please contact our sales team(sales@e-iceblue.com) if you need it.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue May 17, 2016 9:04 am

Hi,

Has your issue been resolved?
Thanks for your feedback in advance.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron