Report Generator functions giving error in executable

5 views (last 30 days)
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 Comment
M O on 19 Dec 2017
I got the same problem. Does anyone solved this problem?

Sign in to comment.

Answers (1)

Kobra Rezai
Kobra Rezai on 1 Mar 2021
need to add this import:
import rptgen.rptview;
import rptgen.*;

Community Treasure Hunt

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

Start Hunting!