>Hi,
>Thank for your reply, can you suggest any
>solution for this case ?
>
>Derek
You have to run the report twice .. the first time you output it to a file and track how many pages are in each data group. The second time you output it to the printer/preview and reference the data you built during the first pass.
There are several ways to go about it. You could create a cursor to hold the page counts .. or you could create an array or a collection. As far as updating the cursor/array/collection, you could call to a UDF or method in the OnExit Expression of the data group footer .. and within that UDF or method you can check the number of pages and store it in your cursor/array/collection.