I can't use Document command to generate a Report
Show older comments

6 Comments
Cris LaPierre
on 15 Feb 2021
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
on 15 Feb 2021
Cris LaPierre
on 15 Feb 2021
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
on 15 Feb 2021
Junior Joel Aguilar Hancco
on 15 Feb 2021
Cris LaPierre
on 15 Feb 2021
Sorry, i realized I was wrong so removed it. This link is helpful.
Accepted Answer
More Answers (1)
Rahul Singhal
on 15 Feb 2021
The issue in the non-working script is that it has a typo in the package import statement, which is the reason it is not able to recognize the Document class.
Change:
import mireportgen.dom.*;
to
import mlreportgen.dom.*;
2 Comments
Cris LaPierre
on 15 Feb 2021
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
on 15 Feb 2021
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


