[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2014-08-11
Medium Priority
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
  • 2
LVL 37

Accepted Solution

ValentinoV earned 2000 total points
ID: 40253808
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 66

Assisted Solution

by:Jim Horn
Jim Horn earned 0 total points
ID: 40253941
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

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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

834 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