Not quite sure how to describe this issue, but I’ll try…
I have an SSRS report containing sales for all sales people. The report is grouped, with page breaks, by the sales person name. It worked fine… UNTIL I added a header field that displays the group variable.
Once I place a text box in the header to display the Salesperson who’s data appears on the page(s), all of a sudden, the breaking no longer (reliably) works.
For example, sales person A sales data fills the first two pages and half of page 3. The breaking occurs and the next salesperson (B) starts on page 4.
However, once I add the ReportItems!TxtBox.Value
expression in the header, page 3 no longer breaks.
Instead, sales person A fills the first half of the page, as before, but it’s immediately followed by sales person B - no page break.
As for the Header expression, sales person A is properly displayed for the first 2 pages. However, since the sales person changes mid-page w/no break, the header for page 3 shows sales person B.
It seems that the ReportItems expression is grabbing the last group name that WOULD appear on the page had there been no break. I thought it could it be that I should NOT use a group name in the ReportItems expression, however, I tried using a different field in the ReportItems expression as a test. It still suppresses the break JUST for this single sales person. I verified the data is good.
It makes no sense that the break occurs perfectly without the header field, and once I put it back in, the break is suppressed.
As stated above, the break fails JUST for page 3. There are other pages where a single sales person’s data does not fill the page, and the break works. And the header field displays properly! Vexing!
Any thoughts will be appreciated.