フィルターのクリア

Multiline display with mlreport gen

2 ビュー (過去 30 日間)
ML_Analyst
ML_Analyst 2024 年 4 月 1 日
回答済み: ML_Analyst 2024 年 4 月 6 日
I am using matlab report gen to generate a PDF report from the matlab. In the second page of the report I have a table that is displayed( input received for generating report function is cellarray, then it is converted to a table and then converted Formal table before appending to report).
But the problem is that in the table that is printed in PDF report, I don’t see the word wrap feature applied or the white spaces are also not present between multiple lines of text.
I read some option with "Preformatted" but this doesnt work and ended with error
"No constructor 'mlreportgen.dom.Preformatted' with matching signature found"
Could someone help how to make wordwrap feature for my PDF report and also have multi line texts in the table that is displayed.

採用された回答

ML_Analyst
ML_Analyst 2024 年 4 月 6 日
Got this working with the "TableColSpecGroup" class.
When writing the style for the "TableColSpecGroup" , we can also add attribute for Hyphenation and this does the trick. Example code below:
specs(1) = TableColSpec;
specs(1).Style = {Width("40%"), Hyphenation(' ')};

その他の回答 (1 件)

Taylor
Taylor 2024 年 4 月 2 日
  1 件のコメント
ML_Analyst
ML_Analyst 2024 年 4 月 5 日
@Taylor both the solutions are not working for us

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

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by