Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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."

Réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by