views:

265

answers:

1

I tried to find any solution, saw a lot of similar questions on different sites, but still have no appropriate solution.

So, the situation is following:

On SQL Server 2005, Reporting services I have printed form (ex. "invoice"), which can be multi-page. I need to print a lot of such forms (ex. all "invoices" for specified customer and for specific period) by one click. I put the layout in the table and group all info by the invoice number, so for the whole printed form it's fine, I've got, what I want. For all, except page numbering. Each invoice, if it's multi-page, should have in the footer page numbering like "page xx from xx". I found, how can I reset page number, but I don't get if it's possible to calculate total number of pages for group. Have somebody solved it? thanks

+1  A: 

This blog post describes the exact thing you are looking for:

http://blogs.msdn.com/chrishays/archive/2006/01/05/ResetPageNumberOnGroup.aspx

slugster
in fact, no. It's popular article, it helps to reset the counter, but the problem with calculation the number of pages still doesn't solved ;) anyway, thanks :)
Aevdox