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

HTML viewer has no 'word' export

10 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Al asked on 11 Jan 2017, 06:13 AM

Hi,

I noticed that the 'word document' export option is missing from the HTML report viewer's export options - is there something I need to do to enable this?

(see screenshot)

10 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Jan 2017, 09:41 AM
Hi Al,

Please check Missing DOCX, XLSX, PPTX, XPS export options. The suggested settings must be applied in the Reporting REST service's project.

Regards,
Stef
Telerik by Progress
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
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jan 2017, 02:22 PM

Hi Stef,

I have added references to 'DocumentFormat.OpenXml' and 'Telerik.Reporting.XpsRendering' + I have added the following to my web.config:

<runtime>
  <assemblyBinding>
    <dependentAssembly>
      <assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="31BF3856AD364E35"/>
      <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.0.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="DocumentFormat.OpenXml" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
      <bindingRedirect oldVersion="2.0.5022.0" newVersion="2.5.5631.0"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>

 

But I still don't see the export options - what else can I check?

0
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jan 2017, 02:24 PM
...and the dll's are 'copy  local' and they do appear in the bin folder...
0
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jan 2017, 02:58 PM
I'll upload a test project to a new support ticket
0
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jan 2017, 02:59 PM
I'll upload a test project to a new support ticket
0
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jan 2017, 02:59 PM
I'll upload a test project to a new support ticket
0
Katia
Telerik team
answered on 12 Jan 2017, 08:33 AM
Hi Al,

Based on the project you attached in the support ticket #1083549, the required DocumentFormat.OpenXml assembly might be missing from the project's bin folder.

Make sure that CopyLocal is set to true in assembly's properties. In case, you need to use Open XML SDK of version greater than 2.0.5011.0, check if the binding redirect for the DocumentFormat.OpenXml.dll assembly is added correctly to the web.config - Deploy Telerik Reporting with newer OpenXML SDK version.


Regards,
Katia
Telerik by Progress
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
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 12 Jan 2017, 09:22 AM

I got it working by using this:

<dependentAssembly>
        <assemblyIdentity name="DocumentFormat.OpenXml" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2.5.5631.0"/>
      </dependentAssembly>
    </assemblyBinding>
0
Katia
Telerik team
answered on 12 Jan 2017, 10:24 AM
Hi Al,

Thank you for this update. However, the code snippet provided in Deploy Telerik Reporting with newer OpenXML SDK version should still work:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="DocumentFormat.OpenXml"
                         publicKeyToken="31bf3856ad364e35"
                         culture="neutral" />
        <bindingRedirect oldVersion="2.0.5022.0"
                        newVersion="2.5.5631.0"/>
      </dependentAssembly>
    </assemblyBinding>

Note, the namespace part on the assemblyBinding element xmlns="urn:schemas--com:.v1" that is missing from your web.config. This might be the reason the binding redirect is not working.

You can test adding the namespace part to your binding redirect and run the project again to see if the Word export option appears.


Regards,
Katia
Telerik by Progress
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
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 12 Jan 2017, 10:32 AM
Sorted, thank you
Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stef
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Katia
Telerik team
Share this question
or