Solved

ssrs subreport not viewing when running

Posted on 2014-03-11
8
597 Views
Last Modified: 2014-03-17
I have a report with nested sub reports with nested sub reports.

When I view it, the inbetween report is skipped.

so Main > sub > sub2 only shows
main > sub2

No errors, I have no idea what is causing it.  Help would be appreciated.
0
Comment
Question by:UnderSeven
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39922739
I don't see how this is possible?  If you can see sub2, I would think you're seeing sub as well because sub2 is only contained in sub?  Perhaps you can use different background colors in each report to "debug" this?  If each report has a different background color you can easily see what part is coming from what report...
0
 

Author Comment

by:UnderSeven
ID: 39923426
A second look indicates that in fact sub 1 is showing, but just a small portion of it.  It's excluding everything above the nested subreports and everything below, but containing everything that happens in sub one around nested sub 2.
0
 

Author Comment

by:UnderSeven
ID: 39923447
It's excluding the header and footer from the subreport 1.  How do I include this?
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:UnderSeven
ID: 39923477
You led me to the answer which is the header and footer was not displaying because in ssrs it never will.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 39923486
It's excluding the header and footer from the subreport 1.  How do I include this?

That's by design: subreports will never render report header/footer.  Only the report body gets rendered.  So if you need the info from the header/footer you'll have to implement it differently: either in the main report or in the subreport but without using the report header/footer.

Official doc:

Headers and footers that are defined in the original RDL file are not rendered when the report is rendered as a subreport.
Ref Understanding Rendering Behaviors
0
 

Author Closing Comment

by:UnderSeven
ID: 39932532
Thanks for the additional explanation.  The reference document was also helpful.
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39933668
Glad to hear, I was typing it while you closed off the question :)
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question