Hi
I've downloaded trial verion of telerik reporting to try functionality what I need. On demos I haven't seen option to export report to DOCX (i don't know why) also when I tried to export it manualy with RenderingResult result = reportProcessor.RenderReport("DOCX", reportToExport, null); but I've always seen "DOCX rendering format is not available." message.
Could the trial version be a reason?
Have someone had issue like this?
Best regards
Waclaw
9 Answers, 1 is accepted
The demos that are shipped with Telerik Reporting do have all export formats available. Note that
DOCX rendering extension requires .NET 3.5 or above, Telerik.Reporting.OpenXmlRendering.dll and Open XML SDK 2.0 for Microsoft Office (DocumentFormat.OpenXml.dll v.2.0.5022.0 or above).
Greetings,
Steve
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Hello Steve
Thank you for your replay, it helps, but I would like to note that Telerik trial version has installed older DocumentFormat.OpenXml.dll (2.0.3930.0) version on my computer. This is the reason why Telerik official demos cannot export reports to open xml formats.
Many thanks
Waclaw
Just checked all 3 releases - Q1 2011, Q1 SP1 2011 and the latest internal build v.v5.0.11.603. In all of them the version of DocumentFormat.OpenXml.dll is 2.0.5022.0. If you had older version available in your system, it must have came from somewhere else. You can see the version we ship in the install directory C:\Program Files (x86)\Telerik\Reporting Q1 2011\Examples\bin
Kind regards,
Steve
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Hello,
You are right, this dll could be installed earlier on my computer.
Applications could use older version already installed, but in my private opinion exception message is totally unreadable. Message should include information about missed dlls or ask to select version above .
But the way,
Thank you for your help
Waclaw
DocumentFormat.OpenXml.dll v.2.0.5022.0 is required for the DOCX/XLSX/PPTX rendering extensions.
In case you have a newer version you will need to add binding redirects.
For more information, please refer to the Deploying Web Applications help article.
Regards,
Nasko
Telerik
Nasko,
Thank you for the information. I have updated all of the references in our solution to the 2.5 version of openXML and deployed the web application to our development server and everything works/without a binding redirect. However, when we deploy the web site to the production server, it fails. I added a binding redirect to the production web.config, but that did not resolve the issue. The two web servers are (as far as I know) configured identically. Is there any other place that a configuration setting might cause the web application to not find the assembly?
Thanks.
-KJ
Nasko,
One additional note. There is an area in our application that uses Open XML on it's own and that part works. It's just the two areas that use Telerik Reporting that fail now. Specifically with this error: "DOCX rendering format is not available" at this point:
Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfo(String format).
Thanks for any help.
I believe you resolved the issue based on the information in your support ticket #946790 - Reporting 6.1. 12.820 -- OpenXML 2.5 installation problems. Your solution is to install OpenXML SDK on the server and reboot it. In addition, if you are using OpenXML SDK 2.5 instead of OpenXML DSK 2.0 you need to add binding redirects to the greater version of the DocumentFormat.OpenXml.dll assembly.
For anyone concerned, below is my response in the ticket:
"You can use the DocumentFormat.OpenXml.dll assembly of OpenXML 2.5 DSK by adding proper bindingRedirect in the application's configuration file. For more details check Deploy Telerik Reporting with newer OpenXML SDK version."
Regards,
Stef
Telerik