We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Export report to DOCX format

Thread ID:





118514 Mar 16,2015 05:30 AM UTC Mar 18,2015 02:26 PM UTC ASP.NET MVC 3
Tags: ReportViewer
Jeffrey A. Childers
Asked On March 16, 2015 05:30 AM UTC

The code below is from your sample MVC app.  The HTML Report Viewer currently will export to Doc format.  How would I modify the code below to export to Docx or Word2013 format.   

@(Html.EJ().ReportViewer("reportviewer").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local).ReportPath("~/App_Data/GroupingAggregate.rdlc").ReportServiceUrl("/api/ReportAPI").DataSources(t => t.Name("Sales").Value(ViewData["Sales"]).Add()))

Soundara Rajan S [Syncfusion]
Replied On March 17, 2015 07:08 AM UTC

Hi Jeffrey,


Thanks for using Syncfusion Products.


We have exposed the WordFormatType property in our EJMVC ReportViewer and using this we can set the specific export format for word as shown by below code snippet,


        @(Html.EJ().ReportViewer("reportviewer").ExportSettings(exp => exp.WordFormatType(Syncfusion.JavaScript.ReportViewerEnums.WordFormats.Docx)).ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote).ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/SSRSReport")).ReportServerUrl("").ReportPath("/SSRSSamples2/Territory Sales new"))       


As of now, ReportViewer does not support the export file extension based on the format type. We have consider the enhancement as issue “export the file extension based on the format type”, in order for you to get a solution for this behavior, please contact us at Syncfusion Support or you may also open a support ticket by login in to direct trac account and mention this forum link for reference.


Please let us know, if you have any concerns.



Soundara Rajan S.

Jeffrey A. Childers
Replied On March 17, 2015 12:06 PM UTC

If I understand you correctly, are you saying that with the WordFormatType set to DOCX, the program is creating an Open XML document, but the document extension will still show "doc"?

Soundara Rajan S [Syncfusion]
Replied On March 18, 2015 02:26 PM UTC

Hi Jeffery,


Thanks for your update.


Yes, We have some issue with export the file extension based on format type and we have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates




Please let me know, if you have any queries.



Soundara Rajan S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon