I can't use Document command to generate a Report
Afficher commentaires plus anciens

6 commentaires
Cris LaPierre
le 15 Fév 2021
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
le 15 Fév 2021
Cris LaPierre
le 15 Fév 2021
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
le 15 Fév 2021
Junior Joel Aguilar Hancco
le 15 Fév 2021
Cris LaPierre
le 15 Fév 2021
Sorry, i realized I was wrong so removed it. This link is helpful.
Réponse acceptée
Plus de réponses (1)
Rahul Singhal
le 15 Fév 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 commentaires
Cris LaPierre
le 15 Fév 2021
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
le 15 Fév 2021
Catégories
En savoir plus sur MATLAB Report Generator dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



