I have a table with page breaks set on groups. This way when the report is exported to excel it comes out in multiple sheets. However, business wants another report with the same data to come out in one sheet when exported to excel. I have a parameter that allows the user to export the report in multiple sheets or one sheet. I wanted to have an expression on the grouping that would perform page breaks on the report based on the parameter. However, I'm not sure where the inline function should be placed.
This is from an MSDN article (
In some reports, you may want to place a page break at the end of a specified number of rows instead of, or in addition to, on groups or report items. To do this, create a group that contains the groups or detail records you want, add a page break to the group, and then add a group expression to group by a specified number of rows.
The following expression, when placed in the group expression, assigns a number to each set of 25 rows. When a page break is defined for the group, this expression results in a page break every 25 rows.
Copy Code
=CInt(Ceiling(RowNumber(Nothing)/25))
But I'm not sure where the group expression is located.
I tried putting the inline function in the "group on" section of grouping and sorting properties, but the report came out in multiple sheets when I chose the one sheet parameter.
Thanks for the help.
This is from an MSDN article (
In some reports, you may want to place a page break at the end of a specified number of rows instead of, or in addition to, on groups or report items. To do this, create a group that contains the groups or detail records you want, add a page break to the group, and then add a group expression to group by a specified number of rows.
The following expression, when placed in the group expression, assigns a number to each set of 25 rows. When a page break is defined for the group, this expression results in a page break every 25 rows.
Copy Code
=CInt(Ceiling(RowNumber(Nothing)/25))
But I'm not sure where the group expression is located.
I tried putting the inline function in the "group on" section of grouping and sorting properties, but the report came out in multiple sheets when I chose the one sheet parameter.
Thanks for the help.