How to create reusable footers in SSRS 2008? - ssrs-2008

In my project I am already having a number of reports and also new reports are being created. Now I need to apply a common Footer (with page number, total page number, user name, report name and execution time) for all these reports. This footer has to be in such as way that we can modify it anytime (at a single place) and all the reports will get modified footer there after. Also the footer should be re-usable.
I have tried out approaches like
1) Creating a report and putting it inside the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject - This allows the reusablility of the template. But if modified will not get applied to existing reports.
2) Creating sub-report and adding it to the end of the Data area in main report. This provides re-usablility as well as modifiable features. But not able to show Page Number, Total Page Numbers etc... and also not able to show the footer in each page of the report.
Can anyone give me some leads on how these features can be acheived?
Thanks

As far as I know this is not possible. Templating seems to be one of the main deficiencies of SSRS.
It's not ideal, but what you could possibly do is create an xsl stylesheet to process all of your RDL files and add/ update the footers.

Related

crystal report 8.5 filter records

I am new to this position (production support) and asked to look into a problem in a crystal report 8.5. I am new to crystal report as well with some basic training only.
The report seems to be missing some records. It uses a SQL Server 2005 procedure as data source. I tested with same parameters the report used on the procedure and the it returns all records including the missing records in the report. So I think the report must filter the records. Then I checked Record Selection Formula, I saw something in there but it seems not related to the missing records. For testing, I commented them all, run the report but the records are still missing.
So I guess there may be something else that filters the data?
It turns out to be something in top N group expert. The report only lists top 50 items for a group based on sales units.
You might benefit from exporting the report definition into a .txt file by clicking file > export > export report > report definition txt ( you have to scroll for it). I believe this functionality existed back in 8.5.
What it does is display the underlying formatting, filtering and formulas in an easy to read format. You should be able to pick out what is happening much more quickly than clicking through all the potential places for something to be hidden. I see that you answered your own question but seeing that you're new to this position this is a troubleshooting tip I found invaluable.

Crystal Reports : Crosstab refuses not to paginate

I am using Crystal Reports 11 (XI) and I have a crosstab that has quite a few rows to it. Its publishing format is to Excel, so pagination doesn't really even make sense. However, no matter what I do it repeats the column/crosstab headers every couple dozen lines. I've tried:
-Increasing page size definition to max size (12x18) portrait
-Turning off pagination in the output settings
-Turning off horizontal pagination
-Deleting column headers (works) but I cannot delete the crosstab header
I'm running out of ideas.
If the goal is just to create an excel file with some pivoted data crystal reports is not the best way to do it. Check the first 5 minutes of this video:
http://www.r-tag.com/Pages/Preview_Demo.aspx
It compares the same data presented as a cross-tab in Crystal reports and pivot report based on a SQL ad-hoc query. SSRS is also part of the comparison and it is a better choice than Crystal too , but SQL ad-hoc query is my favorite for pivoted data.
P.S. I am proposing this alternative because the tool is free, it will save you development time and will create a better formatted excel file. If you are using BOE and you want to keep the report there this might not work for you.
The solution is as contrived as the problem...
There is no way in Crystal XI to "turn off" the crosstab pagination. It simply cannot be stopped. However, you can cheat the system by configuring a massive page size. In windows on your development machine, locate your XPS printer virtual device and choose "Print Server Properties" (in the top banner in Win 7+)
In the "Forms" tab, you will be able to configure a new paper form object of arbitrary size. Click on "Change Form Settings" and create a new page that is as large as you think you will need. I'm not aware of any limitations on this configuration, but I'm sure bad things happen if you go nuts.
Returning to crystal, go to printer configuration and select the XPS document printer as your target device for exports, and save the custom page size as the target paper type.
Now, the crosstab will assume you are printing to a massive sheet and will not attempt to paginate. As far as I can tell it's impossible to achieve the same effect any other way.
Here is a introduction about jasper crosstab.
http://www.tutorialspoint.com/jasper_reports/pdf/jasper_crosstabs.pdf
From the document, you can add two attributes in node
<crosstab isRepeatColumnHeaders="false" isRepeatRowHeaders="false">
...
</crosstab>

Crystal Reports - Remove Excess Records

Good day everyone. I would like to ask for help regarding printing records using Crystal Reports.
My aim is to print all the records in the report. The problem is that when I have only two or three records, the form will still print a space to forcibly expand it into a one whole page.
What I have did is to manually place all the parameters in the form, and add a record number parameter built in the Crystal Reports Designer. I loaded a dummy record with nothing in it. Now when I run a report wherein I have only two to three records, I have this output.
How will I work out this problem? I can only find in the Internet about shrinking, but not expanding.
In the Section Expert, check 'Suppress Blank Section'. Hope that helps

Crytal Reports - Subreport

I have a main report and a group subreport the is driven off of a value in the mainreport. What I want to do is have the subreport printon a new page without the Headers showing from the main report. Is this possible?
Thanks.
There are several ways to do this, depending on how your report is structured and how it's being viewed (in it's native .rpt format, exported to PDF, etc.).
If you're looking for a "Do not print page header/footers if there is a subreport on this page" function, I've never seen one. Sure would be convenient though if it did exist. However, the InRepeatedGroupHeader boolean might help you in conditionally suppressing the header/footer sections. This will take a lot of trial & error, however.
If the subreports are that different from the main report, don't try to combine them. Keep these "subreports" in a completely separate file.
Are the page numbers of the subreports locked down? i.e. If you know for certain that these subreports are only 1 page long and appear only on even-numbered pages? In this case, you can 'suppress' page headers and footers only on even-numbered pages.

Composite reporting, Crystal Reports difficult to manage

I was wondering if someone had a suggestion on how to best do composite reporting.
I have tried to accomplish this with Crystal Reports [CR] (The one that comes with VS2k8) but for a codemonkey like me, it's hard to grasp the design part...
I have found that CR works nicely for reporting on tabular and repeatable data, but I can't grasp how to do what I want it to do.
What I want is a nice front-page, with title, subtitle and possibly some other text.
Maybe a TOC.
A summary report, consisting of some calculations and text-summaries calculated beforehand (not using the reporting tool).
Then a listing of one type of data, normal tabular.
Then another type of data, also tabular.
Then a drill-down on the first type of data. (Every "line" in the first type has 1..* associated items).
It looks to me like I have to do them all in separate reports, then "concatenate" the resulting reports to one another to get one report. And the front-page and the summary page I have no idea how to do at all.
Is there a better tool for doing this? Or does anyone have a good "quick-start" on composite reporting with CR? :)
EDIT: Oh, and these will only be used in printed-form. So no dynamic drill-down and such are necessary.
I create sub-reports and insert them into a footer section of the main report to create composite reports, using seperate reports as you suggest. I've searched myself, and failed to find any reasonable alternative. This approach works well enough and results in a single report file when done.
In my experience, Crystal is a pain in the butt for doing anything like a fixed page layout (ie: the title page). I usually put the title page in the report header (make sure to select "new page after" in the section options). Everything else pretty much has to go into subreports.
If you need to share totals and such between subreports, you need to use a shared variable in a formula field:
shared numbervar whateverTotal:= sum({whatever});
and then in the following reports, just use:
shared numbervar whateverTotal;