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

Missing dependency in Telerik.Reporting.*.nupkg

3 Answers 687 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
René
Top achievements
Rank 2
René asked on 01 Feb 2019, 09:33 AM

Telerik.Reporting Nuget package contains assembly Telerik.Reporting.OpenXmlRendering.2.7.2.dll.

This assembly requires installed DocumentFormat.OpenXml v2.7.2. But this dependency is missing in Telerik.Reporting.nuspec.

Francis
Top achievements
Rank 1
Iron
Iron
Iron
commented on 11 Dec 2023, 04:18 PM

Could not load type 'DocumentFormat.OpenXml.Packaging.ImagePartType' from assembly 'Telerik.Reporting.OpenXmlRendering.2.7.2, Version=17.2.23.1114, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' due to value type mismatch.
Dimitar
Telerik team
commented on 12 Dec 2023, 10:10 AM

Hello Francis,

This is a known issue that appears when the referenced DocumentFormat libraries are of version 3.0 or newer. The issue is already logged on the feedback portal and I noticed that you have cast your vote for it which should further increase its priority - OpenXML renderings should work with DocumentFormat.OpenXml 3.0.0 and newer (telerik.com).

Currently, the workaround is to use version 2.20.0 or older of the DocumentFormat.OpenXml library to avoid this problem.

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 06 Feb 2019, 07:57 AM
Hello Raptor,

Based on the provided information, the current installed version of Telerik Reporting assemblies is 13.0.19.116.
I confirm that there is a problem with DocumentFormat.OpenXml.dll version 2.7.2+ that slipped in this release. The issue is fixed in internal build 13.0.19.118.

A possible workaround with this version is described in Telerik Reporting R1 2019 fails to load assembly DocumentFormat.OpenXml 2.7.2+ KB article.

We are sorry for the inconvenience this might have caused.

Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Lars
Top achievements
Rank 1
answered on 05 Jan 2021, 12:50 PM

Hi.

Isn't this still a problem in newest version 14.2.20.1021 ?
Missing dependencies to Telerik.Reporting.OpenXmlRendering and/or DocumentFormat.OpenXml ?

I have to reference it manually - else I get runtime generation running xlsx reports "Telerik.Reporting.Processing.RendererNotAvailableException: xlsx rendering format is not available."

Running .NET 4.8

 nuspec:
        <dependency id="Microsoft.Extensions.Configuration" version="2.1.1" />
        <dependency id="Microsoft.Extensions.Configuration.Binder" version="2.1.1" />
        <dependency id="Microsoft.Extensions.Configuration.Json" version="2.1.1" />
        <dependency id="System.Configuration.ConfigurationManager" version="4.5.0" />
        <dependency id="System.Data.Common" version="4.3.0" />
        <dependency id="System.Data.SqlClient" version="4.6.0" />
        <dependency id="System.Drawing.Common" version="4.5.1" />
        <dependency id="System.IO.Packaging" version="4.5.0" />
        <dependency id="System.Reflection.Emit" version="4.3.0" />
        <dependency id="System.Reflection.Emit.Lightweight" version="4.3.0" />
        <dependency id="System.Runtime.Loader" version="4.3.0" />
        <dependency id="System.Security.Cryptography.Pkcs" version="4.5.1" />
        <dependency id="System.Security.Permissions" version="4.5.0" />
        <dependency id="System.Text.Encoding.CodePages" version="4.5.0" />
        <dependency id="System.Threading.AccessControl" version="4.5.0" />
        <dependency id="SQLitePCLRaw.bundle_green" version="2.0.1" />

0
Neli
Telerik team
answered on 08 Jan 2021, 08:27 AM

Hello Lars,

The issue from  Telerik Reporting R1 2019 fails to load assembly DocumentFormat.OpenXml 2.7.2+ KB article was fixed in internal build 13.0.19.118. 

In general PowerPoint, Word, Excel are OpenXML formats and they require Telerik.Reporting.OpenXmlRendering.dll and Open XML SDK 2.0 for Microsoft Office.

Depending on the version of the Open XML SDK there are two options which assembly to reference:
    1. Telerik.Reporting.OpenXmlRendering.dll supports DocumentFormat.OpenXml.dll 2.0.5022.0 and 2.5.5631.0
    2. Telerik.Reporting.OpenXmlRendering.2.7.2.dll supports DocumentFormat.OpenXml.dll 2.7.2.0 and newer.

For additional information, please check Missing DOCX, XLSX, PPTX, XPS export options in viewers or "X rendering format is not available" error message KB article.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
René
Top achievements
Rank 2
Answers by
Silviya
Telerik team
Lars
Top achievements
Rank 1
Neli
Telerik team
Share this question
or