I can't use Document command to generate a Report
이전 댓글 표시

댓글 수: 6
Cris LaPierre
2021년 2월 15일
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
2021년 2월 15일
Cris LaPierre
2021년 2월 15일
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
2021년 2월 15일
Junior Joel Aguilar Hancco
2021년 2월 15일
Cris LaPierre
2021년 2월 15일
Sorry, i realized I was wrong so removed it. This link is helpful.
채택된 답변
추가 답변 (1개)
Rahul Singhal
2021년 2월 15일
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
Cris LaPierre
2021년 2월 15일
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
2021년 2월 15일
카테고리
도움말 센터 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



