필터 지우기
필터 지우기

How can I add a section template to a report multiple times with different information?

조회 수: 3 (최근 30일)
I have a report that I need to automate with the MATLAB Report Generator and Report API. After the title page, there is a couple pages for a template for a report on a certain sensor. My document can contain a variable number of sensors, so I need to figure out how to repeat the section multiple times with different information filled in each time.
Here's what I tried so far: I've tried separating the sensor template into another .dotx file and trying to make a Section() with that new .dotx file as the TemplateSrc. My plan was to load in the Section(), fill it in, append it to the report, make a new section based off of the same template, fill it in with different details, and append it to the report, etc. However, when I try to append(report,section), I get an error that "Document does not contain a document part template named: Section1."

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by