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.
Related
I am new to crystal and want to understand the basics of subreports.Is it that main report is always executed before subreport?What if the subreport is placed in report/group header?If there are multiple subreports which are either linked or not linked to main report, what would be the order of execution in that case?Does it depend on positioning of report?
I have read many articles and got mixed responses. Please help me in understanding these concepts
Subreports are last to get processed in each section.
The key implication is that if you intend to pass a value from a subreport to the main report via a shared variable, you can't expect a formula in the same section to obtain that value. You must pass the value to a formula in a section below.
My report has too many columns to display. How can I create multiple pages in a single Crystal Report?
I've tried 2 Page Headers and 2 Detail sections but it doesn't work as I expected.
This will be difficult to implement, especially if you're looking to make your report printable on paper. Crystal usually expects to make multiple pages when there's too many rows, not too many columns.
You might be able to pull this off with clever use of subreports, one for Page A, and one for Page B, then forcing New Page After and alternating them. But that's dependent on what the rest of your report looks like. If each page still has multiple rows, I wouldn't try this.
I have a Crystal Reports report which contains a main report and three subreports. The data tables used in subreports are linked with main report's data table. In subreports also I've given linking.
Now when I have data in subreports, all comes out fine. But if there is no data in subreports, the main report is also shown as blank.
How to make the main report show results despite (some) sub reports being empty?
Subreports only run after the main report has retrieved it's data. So unless you have set up some fairly complex suppression conditions using shared variables, there is no way that a linked subreport can 'blank' the main report. You can confirm this by running the same report criteria with all of the subreports deleted. You will likely still have the same blank main report. The cause is more likely to be an inner join in the main report.
And there is one final possibility that I hope no one finds insulting. Depending on how the subreports are arranged, it could be possible that adding the subreports causes the first page to be blank while the report starts on the second page. This is caused by the 'keep together' properties of sections and groups. I have had clients call me to troubleshoot blank reports when the data was on page 2.
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.
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;