Report Generator functions giving error in executable
显示 更早的评论
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
2017-12-19
I got the same problem. Does anyone solved this problem?
回答(1 个)
Kobra Rezai
2021-3-1
0 个投票
need to add this import:
import rptgen.rptview;
or
import rptgen.*;
类别
在 帮助中心 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!