I can't use Document command to generate a Report
Ältere Kommentare anzeigen

6 Kommentare
Cris LaPierre
am 15 Feb. 2021
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
am 15 Feb. 2021
Cris LaPierre
am 15 Feb. 2021
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
am 15 Feb. 2021
Junior Joel Aguilar Hancco
am 15 Feb. 2021
Cris LaPierre
am 15 Feb. 2021
Sorry, i realized I was wrong so removed it. This link is helpful.
Akzeptierte Antwort
Weitere Antworten (1)
Rahul Singhal
am 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 Kommentare
Cris LaPierre
am 15 Feb. 2021
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
am 15 Feb. 2021
Kategorien
Mehr zu Spectral Measurements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



