How to keep a Table together?

조회 수: 5 (최근 30일)
John
John 2020년 9월 21일
답변: Rhea Chandy 2020년 10월 1일
How to keep the Table (mlreportgen.dom.Table) together on same page? Knowing the Table is not longer than one page.
If the rest of the page below is too short, sart the table on next page.

채택된 답변

Rhea Chandy
Rhea Chandy 2020년 10월 1일
I understand you want to know how to start a table on the next page if it does not fit into a single page, and how to split the table if the table is longer than the page.
In order to ensure that the table starts on the new page, consider using PageBreakBefore class to add a page break before your object. This will specify to always start the associated object on a new page.
If the table is longer than the page itself, consider the AllowBreakAcrossPages class. This will specify whether to allow a row to start on the next page when it cannot fit on the current page, or to allow it to flow to the next page when it cannot fit in one page.
In addition, if your table is too wide to fit in one one page, this example shows how to fit wide tables using the Table Slicer object, and to resize columns accroding to their content.

추가 답변 (1개)

John
John 2020년 9월 24일
Can matlab calculate and compare the vertical length of a table?
If the table is longer than the rest of the paper, add a page break and start on next page.
Thanks for your help!

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by