This is a migrated thread and some comments may be shown as answers.

XLSX Export, reporting Q2 2014

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 04 Aug 2017, 07:05 AM

Good Morning,

I'm trying to add XLSX format for ours reports, we have Reporting Q2 2014.

I added OpenFormatXML.dll on my project, installed OpenXML SDK 2.0 on my computer and on our server.

Now I'm trying to add Telerik.Reporting.OpenXmlRendering.dll on our project with NuGet Package, all seems to be ok with the package creation.

When I install it on my computer all is working, I can export my reports on XLSX format all is ok. But when I push these modifications on the server and try to install this package on another computer there is a crash :

Severity Code Description Project File Line Suppression State Error Could not install package 'Telerik.Reporting.OpenXmlRendering 8.1.14.804'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author

On my computer the Nuget add this line in our packages.config

<package id="Telerik.Reporting.OpenXmlRendering" version="8.1.14.804" targetFramework="net45" />

So I don't understand what's the problem .... Could you help me please? 

Here my Nuspec file :

The dependencies is a packages which contains : Telerik.Reporting.dll and Telerik.Reporting.Service.dll

<package>
  <metadata>
    <id>Telerik.Reporting.OpenXmlRendering</id>
    <version>8.1.14.804</version>
    <title>Telerik.Reporting.OpenXmlRendering</title>
    <authors>XXXX</authors>
    <owners>XXXX</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Export telerik reporting to XML </description>
    <copyright>Copyright XXXXX</copyright>
    <dependencies>
     <dependency id="Telerik.Reporting.Assembly" version="1.0.0.1" />
    </dependencies>
    <references></references>
    <tags></tags>
  </metadata>
  <files>
    <file src="*.dll" target="lib\net45" />
  </files>
</package>

 

Thanks in advance for your help

Ben

 

 

2 Answers, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 04 Aug 2017, 07:09 AM
Notice : It's a silverlight project
0
Benjamin
Top achievements
Rank 1
answered on 04 Aug 2017, 08:59 AM

Resolved with this add in app.config :

<dependentAssembly>
  <assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="2.0.5022.0" newVersion="2.7.2.0"/>
</dependentAssembly>

 

Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Share this question
or