Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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."

Respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by