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. Image for the cookie policy date
close icon
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

How to Export report to DOCX format

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()))


3 Replies

SR Soundara Rajan S Syncfusion Team 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.



JA Jeffrey A. Childers 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"?


SR Soundara Rajan S Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon