Report Generator functions giving error in executable

9 ビュー (過去 30 日間)
perveen ali
perveen ali 2017 年 8 月 14 日
回答済み: Kobra Rezai 2021 年 3 月 1 日
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 件のコメント
M O
M O 2017 年 12 月 19 日
I got the same problem. Does anyone solved this problem?

サインインしてコメントする。

回答 (1 件)

Kobra Rezai
Kobra Rezai 2021 年 3 月 1 日
need to add this import:
import rptgen.rptview;
or
import rptgen.*;

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by