Advertisement
Advertisement

I downloaded the latest Microsoft ReportViewer from the link below and installed it. I want to be able to export (render) my Excel files in xlsx format. I’m referencing version 11.0.3366.16 of the following dll’s in my project…

Microsoft.ReportViewer.Common
Microsoft.ReportViewer.ProcessingObjectModel
Microsoft.ReportViewer.WinForms

The download link
https://www.microsoft.com/en-us/download/details.aspx?id=35747

Advertisement

When specifying what you want your output to be, instead of sending WORD and EXCEL as the parameters for the output, send WORDOPENXML and EXCELOPENXML for the new office version.

To verify what output your version of assemblies support, use

<ReportObjec>.LocalReport.ListRenderingExtensions

For example:
RenderingExtension[] r = reportViewer.LocalReport.ListRenderingExtensions();

The complete list is:

  • Image (Tiff)
  • PDF
  • Excel 2003
  • Excel 2007-2010
  • Word
  • Word 2007-2010
Advertisement

By Enrico

My greatest passion is technology. I am interested in multiple fields and I have a lot of experience in software design and development. I started professional development when I was 6 years. Today I am a strong full-stack .NET developer (C#, Xamarin, Azure)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.