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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Export report to DOCX format

Thread ID:

Created:

Updated:

Platform:

Replies:

118514 Mar 16,2015 05:30 AM UTC Mar 18,2015 02:26 PM UTC ASP.NET MVC 3
loading
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("http://76.74.153.81/ReportServer").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.

 

Regards,

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

 

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

 

Please let me know, if you have any queries.

 

Regards,

Soundara Rajan S.


CONFIRMATION

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.

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

;