Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Keeping tablix rows from being split across pages

$
0
0

Using SSRS 2008 R2, I need to report blocks of names and addresses in two columns, and to not split an address across pages.

As an aside, this data is being reported from a Sharepoint list (not SQL or a database).

Since I need the address blocks in two columns on the page, side by side, I set up the report like this:

[Tablix1]               [Tablix1]
Name                    Name
Address                 Address
City/St/Zip             City/St/Zip
Phone                   Phone
Fax                     Fax

Both tablix's have the KeepTogether property set to True (in fact, every control on the page has KeepTogether set to True).

Both tablix's point to the same dataset.

Every row in Tablix1 has it's RowVisibility expression set to:

=IIf(RowNumber("myDataSet") Mod 2 = 1, False, True)

Every row in Tablix2 has it's RowVisibility expression set to:

=IIf(RowNumber("myDataSet") Mod 2 = 0, False, True)

What this does is that it repeats the tablix's for each row in the dataset, and the tablix on the left side is hidden for all even numbered rows, and on the right side, hidden for all odd numbered rows.

This seems to work perfectly. But when I print it or export it to PDF, it is splitting the tablix's across pages, even though both have KeepTogether set to true.

Is there any way to keep the tablix's from being split across pages? I tried putting them in rectangles, but it didn't change anything.

An alternative, which is not ideal, is to force a page break after each set of 6 address blocks. But I don't see a good way to do this either.

Ideas?


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>