I can't use Document command to generate a Report
Mostrar comentarios más antiguos

6 comentarios
Cris LaPierre
el 15 de Feb. de 2021
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
el 15 de Feb. de 2021
Cris LaPierre
el 15 de Feb. de 2021
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
el 15 de Feb. de 2021
Junior Joel Aguilar Hancco
el 15 de Feb. de 2021
Cris LaPierre
el 15 de Feb. de 2021
Sorry, i realized I was wrong so removed it. This link is helpful.
Respuesta aceptada
Más respuestas (1)
Rahul Singhal
el 15 de Feb. de 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 comentarios
Cris LaPierre
el 15 de Feb. de 2021
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
el 15 de Feb. de 2021
Categorías
Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



