Export to excel in SSRS - reporting-services

I have 8 reports and when exporting to excel I need all the reports in a single excel sheet.
Eg: Report 1 in sheet 1 of excel
Report 2 in sheet 2 of excel likeewise
Is this possible????
Please help..

Yes, it's a bit fiddly but you can.
If you create an empty report and populate it with sub-report components in rectangles (one for each of the eight reports you wish to generate). Set each rectange to start a new page and this should produce an eight sheet Excel workbook with one tab per report.

Related

add parameters in ssrs url in report viewer

Hello I have ssrs report and I want to pass parameters within URL is it possible?
report link: http://serverName/reports/reportname
it is possible when I access link like below
http://servername/ReportServer/Pages/ReportViewer.aspx%2fReportName&rs:Command=Render&ParamerterName = abc
but I want to achieve for link http://serverName/reports/reportname
can someone please help
This is a variant I use. This passes concatenated parameters/one parameter from a cell in Excel to the SSRS report (each parameter separated by "-") and opens the report in another Excel workbook. The SSRS report is coded to split the parameter into its constituent parts.
http://myserver/Pages/ReportViewer.aspx?%2fMyreports%2fmyfolders%2fmyreport&rs:Command=Render&rs:format=EXCEL&rc:target=_blank&myparam=xxxxx

After exporting SSRS report into excel I need to see 2 different headers in 2 tabs?

I have a SSRS report with 2 Tablix in it, I used a page break property to export the data into 2 different tabs in excel it’s works fine, After exporting the report into excel I need to see 2 different headers in 2 tabs?
In the header section you can use a placeholder and set the contents dynamically using an expression.
Following expression should get the desired result:
=IIF(Globals!PageNumber=1,"Heading1","Heading2")
Taking into consideration you are using excel export you will most likely have only two pages so the above code should work.

Exporting parent report's subreports into a single Excel sheet?

I'm using SQL2008 R2.
I have a parent report, with a sub-report. The user is prompted for a date and variable number of "areas". For each area selected, that area gets its own page which is the sub-report containing that area's data.
When exporting, each area gets its own sheet.
In SSRS, how can I force the dynamic number of sub-reports into a single Excel sheet on export?
There could be hundreds of sheets generated and I can't expect the user to cut/paste the data into a single sheet every day.
Specific example:
I pick Pittsburgh West and Pittsburgh East, and export. Sheet 1 is Pittsburgh West data, Sheet 2 is Pittsburgh East data.
I want to maintain the headers but have all of the selected area's data on Sheet 1.
In SSRS 2008R2, you can set page breaks to be enabled or disabled based on the format used to render the report.
Typically you would have a table with groups to control page breaks. By clicking on the group and looking at its properties you see there is a PageBreak -> Disabled property. In your case, you would disable this for Excel only:
=IIf(Globals!RenderFormat.Name = "EXCEL", True, False)
Other objects like Rectangles that can control page breaks can be configured the same way.

SSRS R2 Combining two reports with alternating worksheet result

I'm trying to combine two different reports (with totally different datasources) where in the result would be to create an alternating excel worksheets via R2 pagebreaks like "Daily SS", "MTD SS", "Daily RR", "MTD RR", "Daily LL", "MTD LL"...
First report contains the Daily data and the other report contains the MTD data.
Is this possible? Thanks.
If it is a tablix report, you can put all the tables inside a single reports and add page breaks to each table by selecting "Add a page break after" under Page break options in tablix properties.
You can refer this link to get more understanding:
http://technet.microsoft.com/en-us/library/dd207058(v=sql.105).aspx

SSRS 2008 R2 export to Excel leaves row one as blank

In an SSRS 2008 R2 existing report, I want to change the report so the users have the option to hide headers when they export the report to excel. By allowing the users to hide headers when they export the SSRS 2008 report to excel, they can sort and filter the data. This avoids allowing excel to display an error in a popup window saying there are merged cell.
My question is when I hide the headers and export the report to excel, there is a blank line in excel before the data and column headers appear.
Basically row # 1 in cell in blank and data and column headers show up starting in column #2.
Thus can you tell me how to remove the blank row in row #1 when the data is exported to excel?
I believe I have been able to duplicate your issue. Be sure that there is no space between your table and the report header. I find that setting the location property of the tablix to 0,0 is the best way to ensure that there is no space there. By removing the space, you should get your tablix headers as the first row in excel.
Here's an article I wrote giving screen shots and step-by-step instructions.
http://jaysonseaverbi.blogspot.com/2013/11/ssrs-exporting-options-for-excel.html
Use render format in an expression , to toggle the visiblity of the text box so the header appears empty
=iif(Globals!RenderFormat.Name = "EXCEL" , true, false
Note the EXCEL should be in caps for Excel 2003 (xls) and EXCELOPENXML for Excel 2007-2010 (xlsx) if using SQl 2012
There could be another reason for the blank first row:
The existence of a page header in the report.
Solution: right-click on the grey area under the report and choose "Remove Page Header"
When exporting to Excel, the first row shows the headers (if existing)
Changing the tablix location to 0cm, 0cm , will fix the problem.