"AutoFit Row Height" for generated XLSX reports

I need an XLSX report to automatically adjust row heights to accommodate cell contents. I can format the XLSX report template’s cells/rows to “AutoFit Row Height,” but that does not translate to the generated reports.

Is there a way to manage this?