how to get SSRS 2008 R2 to export/render in Excel 2007 format? - reporting-services

I have a report that has ~1k columns and ~17k rows and I'm trying to render it to Excel 2007 with SSRS 2008 R2 Nov CTP.
SSRS team members have mentioned in multiple places that Excel 2007 format is included in 2008 R2, for instance:
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/69545568-73cb-4f4c-8f35-44472ba6d013
Now, it's certainly possible that it just hasn't made it into the product yet (at least as of Nov CTP), and if that's the case, that would be good to know, too (and ideally when it would be in the product).
The repro report and data (along with attempts showing the existing interface still does Excel 2003 format) are attached to the bottom of this blog post, FWIW:
http://cid-456117cf53a42144.spaces.live.com/default.aspx

Unfortunately, it looks like I was misinterpreting Jin Chen's answer ("Here, has good news, we have improved the ability in SQL Server Reporting Services 2008 R2") - there was an answer later by another member of SSRS that states that 2008 R2 will not support xlsx / Excel 2007 output:
http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/87cfd5d4-ea3c-4250-aab8-a1a3dffa3241
As far as a full featured Excel 2007 xlsx renderer, it is definitely on our list to build but it will be post SSRS 2008 R2.
So, maybe it was in R2 but got cut, but either way, it doesn't appear to be an option now.
For those who might be in a similar situation that run across this question on SO, if programmatically generated the spreadsheet is an option for you, I would recommend EPPlus.
http://epplus.codeplex.com/

Excel 2007-2010 format (Office Open XML) is the default rendering format in SQL Server 2012
http://technet.microsoft.com/en-us/library/dd255234.aspx

Related

How to convert SSRS 2005 report to a higher version (SSRS 2010 or later) programmatically?

I am using SSRS 2005 in an old project, it has been working perfect with ReportViewer in local mode for many years, but recently I encountered an exception while exporting the excel report. ".xls" file has a max rows limit (65536), I decide to upgrade the SSRS to a higher version.
Since many years past, there generated thousands of reports, the report definitions were saved as XML in the database. I tried to load the old report definition with ReportViewer 2010 (SQL Server 2008 r2), but failed.
After some research, I know it is easily to convert RDL 2005 to RDL 2010 by opening the report in Visual Studio, it did work as expected.
Is there a library or command line tool to convert RDL 2005 to RDL 2010?
I decided to rewrite the logic creating SSRS Report, basically it is translating business logic to a xml string.
BTW, I got this repository: dynamic-rdlc, it is much easier.

SSRS 2008 Report History not using changed RDL template

We have migrated our application and reports from SQL 2005 to SQL 2008 R2. After testing, we found that Excel format of the report in both SSRS 2005 & SSRS 2008 R2 is different.
We have fixed this in the RDL file and uploaded that file in SSRS 2008. So, from that day/time onwards the format is correct. But when we download the history reports from SSRS 2008, they are still showing report in older format.
Is there any way we can point history reports to refer latest RDL file so that older reports would appear in proper format.
Thanks,
It sounds like you are referring to the report snapshots history. When report snapshots are created they include the report definition as it was at the time the snapshot was generated, and so will always use this definition. This cannot be changed, so there is no way to alter the format of historical snapshots from before you changed the report definition.
More information: https://msdn.microsoft.com/en-us/ms156325.aspx

Convert SSRS 2008 Templates to SSRS 2005

Does anyone know how to convert a template created in SSRS 2008 to be deployed to SSRS 2005 Server?
You cannot run a 2008 report on a 2005 server. I have heard that there are tools that exist to do the conversion, though. See this question.
You can't convert SSRS 2008 to 2005 as it is not backward compatible. There are tools available but those are also not able to convert with 100% accuracy.
Have you tried just uploading the RDL to your 2005 server? The RDL is just an xml file so if you're lucky 2005 server can read and execute the file normally- or perhaps any errors you may get will help you find out what you need to do.
I recently converted 2005 RDLs to 2008, and if i look at the DIFF between the two files it's rather large, so dont get your hopes up :(
Otherwise I have no experience with this.
Try converting 2008 RDL to 2005 RDL. You can find the specs in the following links:
The RDL spec for reporting services 2008 is available here:
http://download.microsoft.com/download/6/5/7/6575f1c8-4607-48d2-941d-c69622e11c32/RDL_spec_08.pdf
The spec for 2005 is available here:
http://download.microsoft.com/download/c/2/0/c2091a26-d7bf-4464-8535-dbc31fb45d3c/rdlNov05.pdf
Open your report in notepad and then change XML header.Replace 2008 with 2005.

RDCL 2008 /*Local Query*/

I am new for RDCL 2008 format. I used RDLC 2005 format for a while and it works fine. However, recently, my company is changing to RDLC 2008 format from RDLC 2005 format. The original report rendering engine crashed. Because in RDLC 2008 format, the connection string and the query string became <ConnectString>/* Local Connection */</ConnectString> and <CommandText>/* Local Query */</CommandText>
Does any one know how change from
<CommandText>/* Local Query */</CommandText>
to something like <CommandText>select * from US001_USER</CommandText>?
Thanks!
I found the solution myself.
Actually, I was using VS 2010 to create RDLC 2010 format file. However if I use VS 2008 (with SSRS 10.0) to create RDL 2010 format file, the ConnectString and CommandText will be filled. RDL 2010 file is just simply changed to RDLC 2010 file by renaming the file.
You can also use Report Builder 2.0.
Report Builder 3.0 uses RDLC2010 which is only usable on a report server, not embedded using reportviewer control. MS promises a updated viewer.
Also see the GotReportViewer.com - They have a source for a program to read all the info... Bottom Right of page.

SSRS - Still no local rendering of 2008 reports in the latest viewer?

I can't believe this - I just starting developing an SSRS report, using a SQL 2008 Report Server project in VS 2008. When I try to render the report in the VS 2008 ReportViewer control, I get this error
The report definition is not valid. Details: The report definition has an
invalid target namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
which cannot be upgraded."
I understand the error, and it has been well-documented all over the web over the past year and a half or so, but can it be that there is still no way of viewing these reports in the latest ReportViewer control? In other words, all these announcements from last year that MS would release an updated ReportViewer control in Q1 of 2009 that can render SSRS 2008 reports were wrong?
The only workaround is to install SQL Server 2005 RS? How have others solved this? Switch to VS 2010? Can I register the 2010 ReportViewer control with my VS2008 project, and is that going to solve the problem? So many questions, but no answers ...
Unfortunately, that is indeed the truth :-(
See Bill Vaughn's Retraction: The ReportViewer Control Does NOT Support SQL Server 2008 RDL in Local Mode for more details.
Hard to believe - but true :-( Let's hope it'll be better in Reporting Services for SQL Server 2010 - eerrghh... 2008 R2 :-)
Marc