Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Where to change the SSRS report print destination excel format?

Posted on by 2,340

Hi All,

In my ssrs report print destination I have selected email and selected the Microsoft Excel format. I am able to get the mail but the file name with *.xlsx it is not opening in my system. If the file is in .xls it is opening good. How to change the extension format. Please suggest

*This post is locked for comments

  • taral13 Profile Picture
    taral13 10 on at
    RE: Where to change the SSRS report print destination excel format?

    But what if i want to send my attachment with .xlsx format?

    what code i have to exactly change?

  • Suggested answer
    Dmitry Begun Profile Picture
    Dmitry Begun 20 on at
    RE: Where to change the SSRS report print destination excel format?

    Hello All,

    when you select print destination "File" you can specify format "Excel" and file name extension XLS or XLSX. System will automatically generate the Excel-file using needed format.

    But when you select destination "Email" and format "Excel" the system will use temporary file name "xxx.tmp". Because of this it will use the most newest version of Excel XLSX (if supported). If you want to get XLS format for the email attachment than you need update the code here: \Classes\SrsReportRunPrinter\toEmail

  • nagaraj Profile Picture
    nagaraj 2,340 on at
    RE: Where to change the SSRS report print destination excel format?

    Hi Denis,

    In production SSRS 2012 using, In UAT 2008 R2 using. After importing database from production to UAT the problem occurred. After changing rsreportserver.config file it still showing .xlsx only.

    Please suggest what are the areas I need to change and what are the services need to restart.

  • nagaraj Profile Picture
    nagaraj 2,340 on at
    RE: Where to change the SSRS report print destination excel format?

    Hi Denis

    I am using Sql server 2008 R2, the rsreportserver.config have following two extensions

    <Extension Name="EXCELOPENXML" Type="Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.ExcelOpenXmlRenderer,Microsoft.ReportingServices.ExcelRendering"/>

    <Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering" Visible="false" />

    while executing ssrs report the file name showing with .xlsx format after click on "Ok" button it showing the following error.

    You have attempted to use a rendering extension that is either not registered for this report server or it is not supported in this edition of Reporting Services.

    where the .xlsx file extension coming from. Is it possible to change this format?

  • Suggested answer
    Denis Macchinetti Profile Picture
    Denis Macchinetti 16,444 on at
    RE: Where to change the SSRS report print destination excel format?

    Hi Nagaraj

    What SQL Server Reporting Server version you are using ?

    With SSRS 2012/2014 the file name extension of files generated by this renderer is xlsx.

    With SSRS 2008 R2, the file name extension of files generated by this renderer is xls.

    More info at technet.microsoft.com/.../dd239307(v=sql.110).aspx, Export Formats section.

    This mean also that you trying to open a XLSX file with an old version of Excel.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans