#### Setting the maximum number of rows for every worksheet

You can control the maximum number of rows in every worksheet in the exported Excel file. To do this:

1. Select the node that represents the report in the Report Inspector.
2. In the Properties panel, set the Rows per Sheet property as required.
3. Click File > Export To > Excel.
4. In the Export to Excel dialog, set the options as required.
5. Click OK to start exporting.

Note: When exporting a report to Excel, rows in the same page of the report cannot be separated and exported to different worksheets, thus the number of rows that is exported to a worksheet may be greater than the maximum number of rows that you set for the property Rows per Sheet.

For example, if you set the value of Rows per Sheet to 100, all the contents of the first page will be exported to the first worksheet. After that, the rows of the first worksheet will be tested automatically by JReport Designer. If the number of rows is less than 100, the next page will still be exported to the first worksheet, even if the number of rows in the first page and the next page is greater than 100; If the number of rows in the first page is equal to or more than 100, a new worksheet will be generated and the second page will be exported to the new worksheet.