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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by