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

sql server reporting services

group:

Master Detail Pagination


Master Detail Pagination Brian W via SQLMonster.com
1/27/2005 6:24:52 PM
sql server reporting services: Hello All,

I am building a report for printing billing invoices.

In my data source, there are two tables:

1. A header table - 1 record for each invoice (address, payer info, etc..)
2. A detail table - multiple records per invoice (detailed charge info)

The user will select multiple invoices to be printed at a time.

The format of an individual invoice is pretty simple:

A. Some stuff from the header table at the TOP and BOTTOM of the page (just some basic info like names and adresses, etc..)
B. A MIDDLE section that shows the charge details (probably with a table)

In my brief time with Reporting Services, I can see how to set all this up and have each invoice show up on a separate page.

------

NOW for the hard part. The MIDDLE section (that shows the charge details) can only hold about 20 line items.. Any more than that and the invoice needs to print the rest on a 2nd page (preferably with the same TOP and BOTTOM parts as the first page)

Is it possible to limit.. say the details of a table control.. to only 20 lines per page? Or is there any other solution?


Thanks.

--
Re: Master Detail Pagination Wayne Snyder
1/28/2005 8:40:28 AM
Create a group in the table and for the grouping condition use something
like

=System.Math.Ceiling(RowNumber(Nothing)/20)

Then set to page break on each group, and include headers/footers..

This will break EVERY 20 rows, so where I have Nothing you might need to put
the scope of the table.

--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)

I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org

[quoted text, click to view]
can only hold about 20 line items.. Any more than that and the invoice needs
to print the rest on a 2nd page (preferably with the same TOP and BOTTOM
parts as the first page)
[quoted text, click to view]

Re: Master Detail Pagination Brian W via SQLMonster.com
1/28/2005 6:05:20 PM
Thanks. This works.

--
Re: Master Detail Pagination DJONES
3/2/2005 7:59:09 AM
When using " =System.Math.Ceiling(RowNumber(Nothing)/20)" from your email
below, I get error. What should I be putting in place of "Nothing"?

Thanks

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