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

Report export to DOCX

9 Answers 565 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Waclaw
Top achievements
Rank 1
Waclaw asked on 11 Jul 2011, 12:37 PM

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

Sort by
0
Steve
Telerik team
answered on 11 Jul 2011, 01:04 PM
Hello Waclaw,

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!

0
Waclaw
Top achievements
Rank 1
answered on 11 Jul 2011, 01:38 PM

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

0
Steve
Telerik team
answered on 11 Jul 2011, 02:02 PM
Hello 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!

0
Waclaw
Top achievements
Rank 1
answered on 11 Jul 2011, 02:40 PM

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

0
Kenneth
Top achievements
Rank 1
answered on 27 May 2015, 09:26 PM
I know that this is an old post, but I have a question relevant to this.  I have redeployed a web application, updating the Open XML SDK to 2.5 from 2.0 and now this error is rendered when a user attempts to obtain a docx file.  Currently, we have Telerik 6.x deployed, but we will be deploying 9.x soon.  Is 6.x not capable of working with Open XML SDK 2.5? 
0
Nasko
Telerik team
answered on 29 May 2015, 01:58 PM
Hello Kenneth,

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
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
Kenneth
Top achievements
Rank 1
answered on 23 Jun 2015, 02:15 PM

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

0
Kenneth
Top achievements
Rank 1
answered on 23 Jun 2015, 04:40 PM

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.

0
Stef
Telerik team
answered on 24 Jun 2015, 08:06 AM
Hello Kenneth,

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
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
Tags
General Discussions
Asked by
Waclaw
Top achievements
Rank 1
Answers by
Steve
Telerik team
Waclaw
Top achievements
Rank 1
Kenneth
Top achievements
Rank 1
Nasko
Telerik team
Stef
Telerik team
Share this question
or