all groups > sql server reporting services > march 2005 >
You're in the

sql server reporting services

group:

Merged Cells in group headers causing "page break" effect


Merged Cells in group headers causing "page break" effect Derek in Richmond
3/14/2005 1:01:11 PM
sql server reporting services:
I have used Reporting Services for several months now - but have recently ran
into a problem that I'm having a hard time overcoming.

I have a report that has 3 groups - District, City/County, and Project
Number. A Project will be in a city/county, which itself is in a District.
So District is group #1, city/county is group #2, and Project #3. I then
have detail rows under the Project grouping (related to the project).

The layout I need is like this:

District Group Header Alpha
City/County Group Header Alpha
Project Alpha
DetailField#1 DetailField#2 DetailField#3 DetailField#4
Project Beta
DetailField#1 DetailField#2 DetailField#3 DetailField#4
City/County Group Header Beta
Project Alpha
DetailField#1 DetailField#2 DetailField#3 DetailField#4
Project Beta
DetailField#1 DetailField#2 DetailField#3 DetailField#4
District Group Header Beta
City/County Group Header Alpha
Project Alpha
DetailField#1 DetailField#2 DetailField#3 DetailField#4

and so on...

To acheive the desired effect, I set the table column widths according to
the needs of the DETAILS section of the report. I then merge the header rows
(because the group header field is relatively long). For the District
header, I merge cells starting with the leftmost side of the report. For the
City/County (because I want it indented), I merge starting with cell #2 (from
the left), and for the UPC, I start merging with cell #3.

What this has caused, however, is for a blank page to be printed between
each header. So I have the District name on a page, then a blank page, then
the city/county name, then a blank page, then the UPC, and then finally the
details.

I have made sure that "Keep Together" = False on the table, and none of the
groups have "Page Break at Start" or "Page Break at End" checked. Further,
when I remove the merged cells (i.e. I split them back up), the report runs
fine -- but without my group headers.

Any thoughts?

Re: Merged Cells in group headers causing "page break" effect arexey NO[at]SPAM gmail.com
3/21/2005 7:29:17 AM
You are most likely slighlty running over the width of your report. It
happens sometimes. Columns become 1.01 inches instead of 1 and you get
the overrun. Increase the width by .5 inches and see what happens. You
can also go through each column and make sure that sum of column widths
plust left and right margins equal page width.

Alexey.

[quoted text, click to view]
AddThis Social Bookmark Button