Another (simpler) method of achieving this would be to use the report property: Rows per page in HTML reports. This is found within the Report tab of the properties of the report, rather than in the report editor:

Assuming the number of rows you want is one of the available options.
To use this then simply leave the rows per page on the list within the report editor blank. You should find Excel still fills the page, and then the HTML page will show the rows selected above.
Ben's technique is far more powerful, but comes at a cost of complicating the report. You end up duplicating the list and potentially having to maintain multiple lists.
I am not saying the above wold be the answer, but it is something you should be aware of and investigating before you complicate the report.
------------------------------
Marc Reed
------------------------------
Original Message:
Sent: Wed August 23, 2023 09:50 AM
From: Ben Nemceff
Subject: Different list rows per page amount for HTML view than Excel view
Hi Robert,
Thank you, I really appreciate it! This is going to work out great, I'm going to play with it some more as I haven't used layout component references before so this is going to help me out with that experience too. I just need to clean it up a little more but initial tests look like it will work great for what I needed.
-Ben
------------------------------
Ben Nemceff
------------------------------
Original Message:
Sent: Tue August 22, 2023 03:31 AM
From: Robert Dostal
Subject: Different list rows per page amount for HTML view than Excel view
Hi Ben,
the only way I know is to create different report layouts for each output format. To do so creat a new string variable wit the expression ReportOutput(). Then enter the desired values. You don't need to enter one for HTML as this is the default layout. "spreadsheetML" is the value for Excel format.

Afterwards enable conditional layouts in the report properties

Voila, one report layout for each output format. Keep in mind that you have to maintain each output format separately. I reduce the amount of work by using layout component references a lot. Just name your report objects and refer to them on other pages.

------------------------------
Robert Dostal
Team Leader BI
GEMÜ
Ingelfingen