Error message "Undefined function or variable 'makeDOMCompilable"

Hi,
I am trying to build a standalone report generator with DOM api elements. Code runs fine while inside MATLAB(2018b), but after compiling and installing (with Matlab Runtime v95) I am unable to make any simple script function. I include 'makeDOMCompilabe' but recieve the error message "Undefined function or variable 'makeDOMCompilable" when I run my standalone application. Why is it not recogniced? Since the error appears before the actual document is generated I assume there is nothing wrong with the path to the document.
Greatful for tips!
import mlreportgen.dom.*
% If compiling, make the DOM compilable
if ismcc || isdeployed
% Make sure DOM is compilable
makeDOMCompilable();
end
rpt = Document('C:\Users\...\Documents\ReportApp\Simple.docx','docx');
open(rpt)
input=open('C:\Users\...\Documents\ReportApp\input.mat');
T=Text(input.text);
append(rpt,T)
close(rpt)

댓글 수: 2

Which OS are you using?
i have the same problem, as i use win7, there was no such problem. now i use Win10, i have this problem.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Report Generator Task Examples에 대해 자세히 알아보기

제품

질문:

2019년 7월 22일

댓글:

2020년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by