Error "Template hole element doesn't specify hole name." using report generator from template

2 ビュー (過去 30 日間)
Hello,
I made a Word template following the instructions from: Introduction to MATLAB Report Generator Video - MATLAB (mathworks.com)
You can see a template preview in the following image.
I used both inline and box hole to try all cases.
The code i'm trying to run is:
import mlreportgen.dom.*
doc = Document(WordFileName, 'docx',Template);
open(doc);
where "WordFileName" and "Template" are strings containing the files path.
When i run the code matlab returns the error:
"Error using mlreportgen.dom.Document/open
Template hole element doesn't specify hole name."
Can you help me?
Thanks,
Simone

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by