export ssrs report data into multiple excel files - reporting-services

I am calling reports through Data Driven Subscriptions. We are having very huge data (in millions). So the reports will be generating very large excel files.
We have provided download option to user for downloading created report excel files. But if file sizes are very huge, User is not able to dowload the files.
Does anyone have an idea how to split report data to multiple excel files. Does SSRS can handle it? After some size limit split data to next file. Like generate multiple files for same report call.

You can split the records into multiple shits by going to page break option in report properties.or you can go to tool tip and write custom expressipn there to how much data you want to see in one shit.
or you can use the help of SSIS to split the report into miltiple excel work book.

AFAIK there is no feature in SSRS that handles this.
You will have to roll your own solution: generate the report asynchronosly (or scheduled) server side, then create an application to distribute the files in seperate parts.

Related

SSRS Reports Export to PDF and append other documents

I am having a requirement where in I am creating some sort of packages. There could be one or two SSRS reports (RDLs per say) part of the package and then there could be some other pdf files included in that.
So in turn the requirement is to merge one or more RDL and one or more pdf files together and make it a single pdf and allow the user to download it.
I am not sure if this can be achieved as it is asked in SSRS itself. My question is specifically if this kind of things can be achieved in SSRS.
I have the other approach where in I export the reports store them some where, pick the couple of PDF files in question and store them in the same folder and then zip it and go from there but thats something is not really wanted.
Could you help me on this or guide me to some resources/approaches?
thanks.
You may need to play around a bit but one way to make it work is to place all your reports as sub reports into your main report.. so when you run the main report.. it runs all the other sub reports.. when you export this, it should export as one document. What is not clear here is, if they have different parameters etc for different reports (sub reports) or if they have any parameters at all.

Exporting SSRS Report to the same excel workbook every month

I am new to SSRS and I'm trying to automate a report for our client. I have comnpleted the design but I have not deployed it to the reporting server. When I manually export the report to excel via the design viewer in Business Intelligence Studio 2008, I get a new workbook every time. However, I want this report to export to excel automatically, to the same workbook, on the same worksheet, every time it is run per month. This way, i can create an excel workbook that contains the report data and other worksheets with templates that auto populate, based on the report data.
I'd like to avoid exporting it to a new workbook, then copying and pasting into the workbook with all my templates manually. I'd also like to avoid exporting to CSV or XML and then importing it into Excel.
Is this possible? Perhaps this is via the deployment of the report and I just haven't gotten that far?
Thanks!
Hi welcome to stack overflow.
Can l suggest looking at another related technology SSIS (Sql Server Integrated Services). This will allow you to extract the data from a data source. Then using the the out of the box components export the data to Excel. Once you have created the package in SSIS, the package can then be scheduled to run (if you have SQL server instance) to run at specific times. I have used that solution in my current role to produce reports automatically and then email then to various people.
The link below shows one method of exporting to excel using BIDS, and suggests some other ways.
http://cavemansblog.wordpress.com/2009/04/17/ssis-export-data-from-sql-server-2005-to-excel/
Also this link http://dougbert.com/blog/post/Excel-in-Integration-Services-Part-1-of-3-Connections-and-Components.aspx is one of three that covers the topic of connecting SSIS to Excel, has some excellent advice IMHO
SSRS has a scheduler build in, which can run reports at specified times, this l think is only available in the enterprise edition. This facility will if memory serves right, will not insert the data, only create or overwrite the file each time. So l am not sure if this is the solution you are looking for.

Fill a form in excel with data from sql, SSIS or SSRS?

We have been provided a form, layed out in Excel, that needs to be filled in based on data we have sitting in our SQL database.
I'm trying to determine the best way to electronically fill the form in. I could create an SSRS report, and lay it out as close as possible to the form provided, but I was wondering if I could use the excel file as a template in SSIS and have SSIS fill in the various fields.
It is not a simple table spreadsheet.
Use an SSIS package, connect to your DB and do the transformations on the package itself, there are several components, I'm pretty sure you will be able to deal with all the situations.
You could use the report and save it as excel but I think will be more complicated.
One thing to consider is that SSRS has limitations when exporting to excel. There is a limit of 60k rows. If you try to export more you will get:
Excel Rendering Extension: Number of rows exceeds the maximum possible rows per sheet in this format; Rows Requested: 209048, Max Rows: 65536
There is a work around to this but its time consuming.
This is an excel 2003 limitation and SSRS 2008 cannot export to excel 2007

Should I use SSRS or SSIS?

I have an Oracle query and I want to export the query results to an excel file daily. I've looked into both SSRS and SSIS and am not sure which would be better to use.
The query is a normal select that returns 10-20 fields. It is pretty straight forward with a couple joins and where clauses. It selects DISTINCT to get rid of duplicate rows.
It's a straight mapping from the query to the excel file.
Does SSIS have performance advantages over SSRS?
I was leaning toward SSRS because it's very simple to set up and there are added benefits of being able to easily run our extract/report with different dates through the SSRS web UI.
SSIS seems like it will be more complex to set up, but still simple. However, it seems I would have to handle how to rename the extracts without using the main excel "template" so there are more steps involved. Also having issues getting parameters to work with Oracle queries.
Even though I am a big fan of SSIS, I would go with SSRS in this scenario.
Your requirement is that you simply need data in an Excel file. Though both SSIS and SSRS can do this task. SSRS has slight advantage in what you are trying to achieve.
You can format the Excel file in SSRS report however you would like to.
Similar to SSIS package that is easy to configure, SSRS also has easier development process. You can design and populate however you would like.
SSIS requires a SQL job to schedule it in order to run the package and then send you the Excel file or save it to some location. However in SSRS, you can simply create a subscription and export the Excel file to particular folder or send it to you in an email.
If you ever want to change the file export format, SSRS already does that for you.
Some of the points that I could think of.
This isn't a report, so don't use Reporting Services.
The SSIS package necessary for this is a single Data Flow task with two components: an "OLE DB Source" for your Oracle query, and an "Excel Destination". Draw a connection between the two components, configure them, press F5 and you're done.
Almost any property in SSIS can be set to the value of an expression. This includes the "ExcelFilePath" property of the Excel Connection Manager. Simply set that to an expression that appends the date to the file path, and you'll be set as long as you only run the package daily.
If you need to run it more than once a day, then simply precede the Data Flow task with a File System task to delete any previous version of the file.
Just tried this quickly myself and found one small issue. The data source I used included VARCHAR columns. The Excel Destination wanted Unicode, so I had to place a Data Conversion component between source and destination.
This link has a nice evaluation of the case you are presenting:
http://theruntime.com/blogs/gscarfone/archive/2009/07/15/data-dump-to-excel-through-ssis-and-ssrs.aspx
Basically it depends on your particular scenerio.
Hope it helps...

How to dynamically embed pdf file to crystal report?

Is there a way to do a dynamic ole insert of a pdf file into a crystal
report based on a value coming from a SQL database?
For example, I have an application in .net, back-ended by a SQL 2008 database.
The app. has a reporting subsystem which uses Crystal Reports to allow
users to run pre-written reports (from stored procedures) by entering
various inputs such as date ranges, etc.
What I want to do is allow the user to enter, say, an account number
which will then be passed to a stored procedure. The procedure will
get the path to the correct PDF file and pass that to a Crystal
Report. How do I get the PDF path to the OLE Object insert??
Is this making any sense??
Thanks for any help in advance.
do you have to use pdf? the idea of adding a pdf to a crystal report makes me feel dirty all over... If possible I would use rpt files as subreports. (note the reason it makes me pale quite so much is that I come from a *nix background and still think pdf should only be used for printing)