Report Generator functions giving error in executable

조회 수: 9 (최근 30일)
perveen ali
perveen ali 2017년 8월 14일
답변: Kobra Rezai 2021년 3월 1일
Hi there, I am using Matlab Report Generator app. and compiling my code for standalone exe file. sciprt is working fine in matlab and makes executable but the launching executable gives error, error msg " ' undefined function 'Document' for input arguments of type 'char'. looks like it does not like the name type of report. here is my code
makeDOMCompilable(); import mlreportgen.dom.*; d = Document('mydoc','docx');
append(d,'Hello World');
close(d); rptview(d.OutputPath); anyone has any suggestion? thanks.
  댓글 수: 1
M O
M O 2017년 12월 19일
I got the same problem. Does anyone solved this problem?

댓글을 달려면 로그인하십시오.

답변 (1개)

Kobra Rezai
Kobra Rezai 2021년 3월 1일
need to add this import:
import rptgen.rptview;
or
import rptgen.*;

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by