Skip to Content
author's profile photo Former Member
Former Member

sub report inside another sub report in cr Xi

is it possible to include sub-report inside another sub-report, like nested sub reports.... already have sub report which needs to add Total of amount offcourse it is complex calculations already done on another i want include that as sub report of this report insert sub report is disabled in sub-report.. it is not possible?

Main Rtp

|-- sub report1

| -- sub report 2

|-- sub report2a

or i can use shared variable of subreport2a in 2 by adding it to main report

Main Rtp

|-- sub report1

| -- sub report 2 (use it here)

|-- sub report2a (shared variable)

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 14, 2016 at 02:31 PM

    There is no way to do nested subreports - you can only put subreports in a main report.

    You could potentially use a shared or global variable to do this (I don't remember which one works between the main report and its subs). Here's what you would do:

    1. In the main report, declare the variable and initialize it so that if the subreport doesn't provide a value, it doesn't keep the value from the previous data. Put this in a group header that appears BEFORE either of the subreports.

    2. In Subreport 2, declare the variable and set its value.

    3. In Subreport 2a, declare the variable an use its value.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.