フィルターのクリア

Convert Model Advisor report from html to pdf

11 ビュー (過去 30 日間)
Oussama Jegham
Oussama Jegham 2022 年 8 月 9 日
編集済み: Morten Veng 2023 年 5 月 1 日
Hello,
I am trying to use Matlab to generate Model Advisor report with PDF format , for that i used the following methods which both didn't work.
Methods 1:
ModelAdvisor.run(model_file,'Configuration','Checks_configuration.mat','ReportFormat','pdf')
Error using ModelAdvisor/run>parseArgs
The specified input arguments are not valid.
Error in ModelAdvisor/run
Methods 2:
MA_SysResultObjArray = ModelAdvisor.run(model_file,'Configuration','Checks_configuration.mat')
import mlreportgen.dom.*;
rpt = Document('MyReport','pdf');
htmlFile = HTML(MA_SysResultObjArray{1, 1}.htmlreport );
append(rpt, htmlFile );
close(rpt);
[ERROR] AbstractBaseLayoutManager - Cannot find LM to handle given FO for LengthBase. (fo:table-cell, location: 102:1115)
[ERROR] AbstractBaseLayoutManager - Cannot find LM to handle given FO for LengthBase. (fo:table-cell, location: 169:1002)

回答 (1 件)

Keerthana Ramesh
Keerthana Ramesh 2022 年 8 月 18 日
Hi,
I assume that you are using MATLAB R2017b version and the feature to programmatically generate the Model Advisor report in PDF format is not available in that release.
The Model Advisor report can be generated in PDF and Microsoft Word formats by changing the File Format in the Generate Model Advisor Report dialog box.
The following documentation link can be referred to generate the Model Advisor report in PDF format from the Model Advisor window:
I hope this information helps.
Thanks,
Keerthana
  2 件のコメント
Oussama Jegham
Oussama Jegham 2022 年 8 月 22 日
thanks for your reponse , this it help me for now .
Morten Veng
Morten Veng 2023 年 5 月 1 日
編集済み: Morten Veng 2023 年 5 月 1 日
How can i generate the pdf (programmatically) in version 2021a? The link above does not exist anymore and it seems the option mentioned in the first example:
'ReportFormat','pdf'
Is not available either.

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

カテゴリ

Help Center および File ExchangeManual Performance Optimization についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by