MATLAB Answers

RepeatAsHeaderRow not working for FormalTable

2 views (last 30 days)
For a FormalTable, setting:
TableName.Header.Style={RepeatAsHeaderRow(true)};
The table does not repeat the header if the table flows on to the following page.
Does this only work for informal tables?
Thanks.

Accepted Answer

Rahul Singhal
Rahul Singhal on 3 Aug 2021
Hi Callum,
RepeatAsHeaderRow format works for the FormalTable.
As this is a table row format, it should be applied to a row inside the header, and not the header itself. For example:
TableName.Header.row(1).Style = {RepeatAsHeaderRow(true)};
Thanks,
Rahul

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!