Filter löschen
Filter löschen

Does the import of Report Generator work with Maltab Compiler?

3 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Faiz Gouri
Faiz Gouri am 27 Feb. 2017
If your application uses DOM-based report generation program, make sure to call "makeDOMCompilable()" before using any report generation functions.
  3 Kommentare
Stanislav Ginzburg
Stanislav Ginzburg am 8 Mär. 2018
If you can write here how did you do it?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by