reporting services - Use dynamic text in report header or footer based on the subreport running on that page -


Here are the steps I have taken:

  1. I have created a subportal report footer.
  2. Then I call this subreport in the main report.
  3. When I run the main report, the sub-report footer portion is not shown in the main report.

    I have searched I have found that this is the limit of SSRS.

    I have changed things, so there is a footnote with some expressions in the main report.

    To expand, I have three reports:

    • Main report
    • SubRapport 1
    • SubRoad 2

      I am calling Subreport1 and in the main report SubRepport 2 I added a page break between the subreport 1 and subreport 2 in the main report.

      Now in my main report footer I have a text box and I want to show some text as per the subforport details shown in related pages. For example, suppose, for example, when I run the main report, my subreport 1 gives me 3 pages of report and subreport 2, gives me 5 pages of the report Now for PageNo-1 to 3 I " Want to show this is my Subreport1 part "and page 9 -8 to 8 want to show" this is my subreport2 part "

      Is there a way to solve this problem?

      I will wrap two sub reports in a table

      First I will create a dataset which Returns two rows eg

      SELECT 'Subreport1' as Report Union Select 'Subforport 2'

      Then I will add a table and set the dataset as the source. I will delete most columns and rows except one column and expansion line.

      I will resize the cell adequately for the comprehensive sub-report, and both will be enough to fit the sub-reports, then I will transfer both sub-reports inside that cell.

      I will set the hidden property on every subpage, so it appears only on the row matching the name eg.

      = Field! Report. Value = "SubPort 1"

      Now (in the end) you can reference the textbox in your footer, using ReportItems syntax.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -