Clear Filters
Clear Filters

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

2 views (last 30 days)
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?

Answers (1)

Arun
Arun on 12 Jun 2024
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

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!