makeDOMCompilable() is not recognized
28 次查看(过去 30 天)
显示 更早的评论
I get an error when I try to generate a report using rptgen and mcc. My code and the error are copied below. I have scanned all available documentation and older questions but have not been able to find a solution. Please help.
This code runs fine through Matlab:
function createReport()
if ismcc || isdeployed
% Make sure DOM is compilable
makeDOMCompilable();
end
import mlreportgen.dom.*
import mlreportgen.report.*
filename = sprintf('Buffer Job %d', 123);
rpt = Report(filename,'pdf');
p = Paragraph('Buffer Static Test Report');
add(rpt,p);
close(rpt);
end
This is the error I get when I run the executable:
2 个评论
Steven Lord
2020-8-11
Which release of MATLAB, MATLAB Report Generator, and MATLAB Compiler are you using?
采纳的回答
Steven Lord
2020-8-12
MATLAB Report Generator not being installed would certainly result in makeDOMCompilable not being available. After you installed it your code now works both in MATLAB and in the standalone application?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!