Report Generator Word Wrap inside Table cells. Words split rather than complete flowing to next line.
15 次查看(过去 30 天)
显示 更早的评论
Table, 1 column, 2 rows.
Words truncated at end of each line. See yellow boxes.
Here is the code, using paragraphs.
MyAText1 ='Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere';
MyAText2 ='Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci.';
MyATable = Table(1);
MyARow1 = TableRow();
MyARow2 = TableRow();
MyAT1 = TableEntry();
MyAT2 = TableEntry();
MyAPar1 = Paragraph(MyAText1);
MyAPar2 = Paragraph(MyAText2);
append(MyAT1,MyAPar1);
append(MyAT2,MyAPar2);
append(MyARow1,MyAT1);
append(MyARow2,MyAT2);
append(MyATable,MyARow1);
append(MyATable,MyARow2);
MyATable.Width = '60mm';
append(d,MyATable);
Any suggestions appreciated.
0 个评论
回答(1 个)
Sameer
2024-8-14
Hi Matt,
You can resolve this issue by following the answer provided in https://www.mathworks.com/matlabcentral/answers/1863073
I hope this helps!
Sameer
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!