Report Generator functions giving error in executable

Hi there, I am using Matlab Report Generator app. and compiling my code for standalone exe file. sciprt is working fine in matlab and makes executable but the launching executable gives error, error msg " ' undefined function 'Document' for input arguments of type 'char'. looks like it does not like the name type of report. here is my code
makeDOMCompilable(); import mlreportgen.dom.*; d = Document('mydoc','docx');
append(d,'Hello World');
close(d); rptview(d.OutputPath); anyone has any suggestion? thanks.

1 Kommentar

M O
M O am 19 Dez. 2017
I got the same problem. Does anyone solved this problem?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kobra Rezai
Kobra Rezai am 1 Mär. 2021

0 Stimmen

need to add this import:
import rptgen.rptview;
or
import rptgen.*;

Kategorien

Mehr zu Debugging and Analysis finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 14 Aug. 2017

Beantwortet:

am 1 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by