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
Steven Lord 2020년 8월 11일
Which release of MATLAB, MATLAB Report Generator, and MATLAB Compiler are you using?
Nabeel Ahmad
Nabeel Ahmad 2020년 8월 12일
Thaks for responding, Steven. It turned out that MATLAB Report Generator was not installed on my PC.

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

 채택된 답변

Steven Lord
Steven Lord 2020년 8월 12일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2020년 8월 11일

댓글:

2020년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by