Pass values from sub-report to main-report using crystal report - crystal-reports

I'm using crystal report xi. I have made a report with two sub report. The sub reports have summary fields named sub total. And i want to make make grand total. How it is possible?
Sample Example Image

I may not be able to answer specifically to your requirement: But following are links that show you how to achieve it. You will have to work your way. The idea is to use Shared variables between main report and subreports.
Hope it helps you.
See links below:
Link 1
http://scn.sap.com/people/prabhat.kumar2/blog/2011/11/06/passing-values-between-reports-in-crystal-reports-2008
http://scn.sap.com/people/ashish.bamzai/blog/2011/11/23/passing-values-between-reports-crystal-reports-2008
http://scn.sap.com/people/brian.bischof/blog/2010/09/29/troubleshooting-crystal-reports-shared-variables
Passing Subreport Value to Main Report

Related

Pass specific value to sub-report from main report

I need some help with a report I have in Crystal Reports. I have a subreport that runs in the details section of my main report. My main report is structured/grouped like this:
MainPartNumber
ChildPartNumber
Sequence
My subreport is relative to a specific ChildPartNumber & Sequence (these parameters & arguments are passed to the subreport). Users are requesting that the subreport appear in the header of my main report. Is this possible?
I appreciate any help.

I Want to Print 1 report in two copies(2 Prints ) with same data in crystal report having Subreport?

Normally if we have report without any sub report in it, it is easy to print twice the report by adding same report in page footer as sub report . But if report contains already subreport than it is not possible to again add subreport in it. So how can we Print such report twice in crystal report.
It must exist a better solution, but here it goes two workarounds:
Alternative 1:
Turn your main report into a subreport (with its child subreport) and duplicate it in a brand new main report.
Advice: subreports use to perform poorly, but if your data is not large, it is ok.
Alternative 2:
If you can easily manipulate the data source (for example, if your generating a dataset through code), use the details section for your report, insert an extra table in your data source where the number of lines is the number of "copies" that you want to print. Let your main table join with this "fake" table without links. The result will be a cartesian product, so you will get the number of copies you want.
Extra note: Crystal let you use another rpt file as a subreport. Maybe you can use this feature to solve your problem. Personally, I don't like this feature, because it does not behave like I would expect by intuition.

Input parameters shows twice in jasper report with subreports iReport?

I have a jasper report that contains three sub-reports. The parameters that I passed to the main report are used in the sub-reports. I didn't show the filter parameters in the header of the main report. I show the filter parameters in the first sub-report. When I go on preview button I have the the filter parameters twice. when I go only on preview on the first report I get the parameters once. Does somebody knows what is the problem?
I put others two sub-reports in the first report and the problem was solved.

Crystal Reports: How can a not on-demand subreport be displayed as a link in the main report

I am struggling to fix a subreport where data is obtained at the point when the main report is generated and the subreport to be displayed as a link, similar to an on demand subreport.
The issue that I have if I use a non on demand subreport is that it cannot be represented as a link, it is displayed inside the main report. As well as an on demand report is not suitable to my case because the data is retrieved when the subreport is opened.
I would appreciate any help.
Thanks in advance!
You have to take the another header for subreport and also drilldown the Header and on the Suppress formula write the formula Drilldowngrouplevel = 0 and for the Sub Report take the another detail section and on the supress formula write the formula Drilldowngrouplevel = 0.
This will definitely work, because I tried it.
Can you add a group level to the subreport and add a single line into the group header?
This will mean you will have to drill down twice to get the data though.

How to change the position of Crystal report dynamically?

I am working with crystal report which has two sub reports. I need to change the positions of theses sub reports dynamically.
Could any help me in this portion?
Place your 2 subreports in separate subsections (i.e. 1 subreport in GH1a and the other in GH1b)
Go into your Section Expert and enter an appropriate formula to suppress each subreport based on your condition.