Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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."

Risposte (0)

Categorie

Scopri di più su MATLAB Report Generator in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by