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
0
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
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
Iron
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
Iron
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
Iron
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
Iron
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
Iron
answered on 11 Jan 2017, 02:59 PM
I'll upload a test project to a new support ticket
0
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
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
Iron
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
Hi Al,
Thank you for this update. However, the code snippet provided in Deploy Telerik Reporting with newer OpenXML SDK version should still work:
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
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
Iron
answered on 12 Jan 2017, 10:32 AM
Sorted, thank you