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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1708931/image.png)
댓글 수: 0
답변 (1개)
Arun
2024년 6월 12일
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!