Let's assume I have dataset with two columns (A,B) and it has 100 records.
I'd like to split this dataset on the same page with 25 records in every column. Side by side.
Example:
What should I use and what properties I have to play with?
Thanks.anyone? :))|||Just a quick drop answer:
- I asume regular column format does not work for you because you want balanced columns and RS gives you unbalanced ones.
- I asume you have a static format= always 100 records, always 25 records/column, or alike.
In those circumstances:
- I'll put 4 table regions side by side on the report design area
- Create a sort of paging expression. Based on Chris Hays blog entry (http://blogs.msdn.com/chrishays/archive/2004/07/15/DynamicGrouping.aspx)
- But instead of grouping items, I'll use the expression for filtering contents on each table. So, table data region 1 will filter for those records with "group" value of 1, table 2 for group 2, and so on...
Hope this helps,
Jordi Rambla
SQL Server MVP (Reporting Services)
SolidQualityLearning|||A related query to you...
how do i control how many records are displayed on the page?. currently I do not see any property and RS just gives me some defaullt number of records on a page.
The problem is, in one case I get 3 records on a page and 2900 pages which I do not want.
Thanks.|||I'm guessing again, because I've not tried this in code, but I think you can follow the same dynamic grouping solution that Chris Hays suggest in their bloeg (see previous link) to have another grouping every 100 records and then adding a page break based on that grouping.
Let me sumarize the solution:
- One list region with grouping each 100 records (expression1) and page break after each group
- Inside the list: 4 table regions, each one holding 25 records filtered according to the block expression2 (now you may want take "page number" in account).
Hope this helps,
Jordi Rambla
SQL Server MVP (Reporting Services)
SolidQualityLearning|||Thanks Jordi,
However your assumption wasn't right enough. :)) Sorry.
In my situation recordset can be between 0 and 100 records.
I will try to manipulate with "region" tables.|||Hey,
I was still not able to control how many records are shown on a single page? Any ideas if there is a property I can configure to control this?
Thanks.|||Hi cvajre (whatever this means ;-)
No, there is no property to control how many reports are shown on a single page.
Keep in mind that RS is designed to support and handle rich free-form reports in an open number of presentation formats. That way, even the "page" concept is a tricky one.
You can set page breaks on groups (only?), therefore the trick mentioned above for creating groups that fit your expected recordnumber size.
Hope this helps,
Jordi Rambla
SQL Server MVP (Reporting Services)
SolidQualityLearning
没有评论:
发表评论