How to show main report with empty linked subreports in Crystal Reports? - crystal-reports

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.

Related

Order of execution of sub reports(linked and non linked) and main report in Crystal

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.

Execution of a subreport in jasper only once

I have a Jasper report which has multiple sub-reports, all of them have separate values. These reports are executed multiple times, is there a configuration I can make so I can execute a specific report only once?
Found the answer for the report
It was adding a page break and add a new subreport for the same

Linked sub-report loops 10x

I have made a report based on four linked sub-reports.
All four reports work as desired as stand alone reports.
The linked report that contains the most data and charts loops 10x all the other sub-reports are present only once!
I have the sub-reports in
GH1a
GH1b
GH2
RF
The offending sub-report is in GH2
Thanks

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.

How to create reusable footers in 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.