I have created a primary crystal report and attached a subreport by following the steps below;
- I Created the report I want printed first as the primary report.
- I then created the sub-report.
- Both of these reports work fine in isolation.
- I placed the subreport into the Report Footer so that it will print immediately after the primary report.
The primary report is a list of income and expenditure. The sub-report analyses the profit by cost centre. Both reports should show the same bottomline but analysed differently. (for example: Sales £100 less (list of) expenses totaling £50 = profit £50 in the primary report; £20 profit product A £20 profit product B and £10 profit product C in the sub report).
However, the subreport returns only three lines; total sales total expenses and profit and the narrative of the three lines is incorrect.