SSRS 2012:  Can column headers be different between preview and Export to Excel?

Posted on 2014-08-11
Last Modified: 2014-08-11
Hello Experts

(I think the answer is 'no', but it's Monday and I have an unlimited number of points to give away, so I'll throw this out anyways.)

I have various SSRS 2012 report users that would like to see column headers cosmetically perfect in Preview mode, but when exported to Excel changed to a format that is less so, such as all caps, underscores instead of spaces.

Q:  In SSRS can I change column header text between preview and Export to Excel?
Question by:Jim Horn
    LVL 37

    Accepted Solution

    Hey Jim,

    I think that should be possible by using the Globals!RenderFormat.Name property.  You could build an expression for each header, when exporting to Excel it should be equal to 'EXCEL'.

    I wrote an article about that property a while ago btw: Hide/Show Items Dependant On Export Format (SSRS)

    LVL 65

    Assisted Solution

    by:Jim Horn
    That worked, but for 2012 instead of 'EXCEL' it's 'EXCELOPENXML', so you'll want to make a quickie edit to the article.
    LVL 37

    Expert Comment

    Ow right, that's indeed a new renderer to support the XLSX format!  Thanks Jim, noted down on my TODO list :)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
    Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
    Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
    Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now