Borrar filtros
Borrar filtros

Report Generator functions giving error in executable

2 visualizaciones (últimos 30 días)
perveen ali
perveen ali el 14 de Ag. de 2017
Respondida: Kobra Rezai el 1 de Mzo. de 2021
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 comentario
M O
M O el 19 de Dic. de 2017
I got the same problem. Does anyone solved this problem?

Iniciar sesión para comentar.

Respuestas (1)

Kobra Rezai
Kobra Rezai el 1 de Mzo. de 2021
need to add this import:
import rptgen.rptview;
or
import rptgen.*;

Community Treasure Hunt

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

Start Hunting!

Translated by