필터 지우기
필터 지우기

Resize columns automatically in PDF report

조회 수: 4 (최근 30일)
ML_Analyst
ML_Analyst 2023년 11월 15일
답변: Akash 2024년 7월 12일 7:17
I am generating a PDF report from a matlab table in a “FormalTable” style but the coloumns width does not get resized automatically. I tried to use the class “mlreportgen.dom.ResizeToFitContents” to resize the columns of a table. But this doesn’t work with the PDF document reports. Any help here would be appreciated.

답변 (1개)

Akash
Akash 2024년 7월 12일 7:17
Hi,
Starting from MATLAB R2017a and newer versions, the "ResizeToFitContents" method works correctly for resizing columns in PDF documents.
As a workaround, you can manually resize the columns at runtime by setting the width of each column proportional to the longest word in the column.
For more information, you can refer to the following article on MATLAB Central:-

카테고리

Help CenterFile Exchange에서 Report Generator Creation에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by