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

Export to docx and xlsx error

1 Answer 516 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Veteran
Robin asked on 25 Sep 2019, 11:34 PM

Hi,

I am trying to export programmatically to docx and xlsx  using Report Processor but get the error rendering format is not available error message.

https://www.telerik.com/support/kb/reporting/export-reports/details/missing-docx-xlsx-pptx-xps-export-options

Referred the article above but still got  the error

I am using Telerik.Reporting 12.1.18.620 ,Telerik.Reporting.OpenXmlRendering  12.1.18.620 and Document.OpenXML 2.0.5022.0

Please  provide me a sample project with the reference dlls rendering in word and xlsx.

Thanks

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 30 Sep 2019, 02:10 PM

Hi Robin,

If the project uses ReportProcessor instance, assembly references must be added in that project's configuration file. Since you are using DocumentFormat.OpenXML version 2.0.5022.0, it is not necessary to add binding redirects. The only thing that I should note is that the references need to have their CopyLocal property to true., so they could be copied in the bin directory.

Please check the attached project for reference. The exported DOCX file could be found in the temp folder.

Best 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
Franz
Top achievements
Rank 1
Iron
Iron
commented on 29 Oct 2023, 04:42 AM

what would I do if I use 2.15.0.0 documentformat.OpenXml? How to handle it?
Dimitar
Telerik team
commented on 31 Oct 2023, 01:15 PM

Hello Franz,

Please have a look at the Use Telerik Reporting with newer OpenXML SDK version - Telerik Reporting article for details on how to handle the scenario with newer versions of the OpenXML SDK.

Tags
General Discussions
Asked by
Robin
Top achievements
Rank 1
Veteran
Answers by
Silviya
Telerik team
Share this question
or