필터 지우기
필터 지우기

Does the import of Report Generator work with Maltab Compiler?

조회 수: 6 (최근 30일)
Hendrik Meyer
Hendrik Meyer 2017년 2월 23일
댓글: farzad 2020년 5월 21일
Hello,
I am writing a MATLAB Programm in MATLAB R2014b, which has to generate a Report, when the user presses a button. For the Report I am using MATLAB Report Generator.
I created a Word-Template with DOM-Object in it. In MATLAB I Import the mlreportgen.dom.*-class, look for the holes and fill them with data. This works very well in MATLAB. But when I create a standalone Tool with MATLAB Compiler, an error occurs.
This is my code:
import mlreportgen.dom.*;
doc = Document(docname, 'docx', 'Template\my_template');
currentHoleId = moveToNextHole(doc); %here the error occurs
Switch currentHoleId
case 'hole'
...
end
this is my error, which is shown in the created log file:
'Error using mlreportgen.dom.Document/moveToNextHole Unable to check out a Report Generator license. Reason: ' ' '
Does anyone know how I can solve the Problem?
Regards,
Hendrik

채택된 답변

Faiz Gouri
Faiz Gouri 2017년 2월 27일
If your application uses DOM-based report generation program, make sure to call "makeDOMCompilable()" before using any report generation functions.
  댓글 수: 3
Stanislav Ginzburg
Stanislav Ginzburg 2018년 3월 8일
If you can write here how did you do it?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by