How do you skip over template items in a .docx file, in MATLAB report generator ?

1 回表示 (過去 30 日間)
Aiden
Aiden 2024 年 6 月 4 日
回答済み: Arun 2024 年 6 月 12 日
Hi,
I am creating a report using a template with MATLAB report generator (mlreportgen.dom.*). The template has a title page table on pg 1 where the document details are filled in, I then want to begin adding my headings/paragraphs/images etc on pg 2 of the .docx file.
My issue is when I append these items, the script addes them to the top of pg 1 above the template title page. I cannot find anywhere how to start appending items to pg 2 while keeping the template title page on pg 1.
pagebreak, pagebreakbefore and section break all do their actions from the top of pg 1 and shift the template items down.
Does anyone have any suggestion on how to start on pg 2 while leaving the template title page on pg 1 the way it is?

回答 (1 件)

Arun
Arun 2024 年 6 月 12 日
Hi @Aiden,
I understand that you want to add headings/paragraphs/images on page-2 of the .docx and need guidance to start appending items to page 2 while keeping the template title page on page-1.
Please refer the following MATLAB documentation link which provides information regarding “mlreportgen.dom.PageBreakBefor” class and includes a related example “Create a Page Break before a Heading”: https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.pagebreakbefore-class.html
Hope this helps!
Regards
Arun

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by