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

XLSX rendering format is not available.

0 Answers 839 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
LEONARDO asked on 06 Jul 2018, 01:58 PM

Hi to all,
I'm trying to create a solution console that it has generate a XLSX file from my report.
I'm using this code, it gives me an error "XLSX rendering format is not available." when execute reportProcessor.RenderReport()

Telerik.Reporting.Processing.RenderingResult EseguiReport(Telerik.Reporting.Report report, string format)
            Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
            Telerik.Reporting.Processing.RenderingResult renderingResult =  reportProcessor.RenderReport(format, report, null);
            return renderingResult;


I have already add these dll:
DocumentFormat.OpenXml version 2.8.1
And added a bindingRedirect in the application configuration file for the DocumentFormat.OpenXml.dll assembly.

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

Also, i set CopyLocal property must be set to True to make sure that the proper DocumentFormat.OpenXml.dll is copied in the project's Bin folder.

No answers yet. Maybe you can help?

General Discussions
Asked by
Top achievements
Rank 1
Share this question