Hi Tomas,
You can programmatically update the report layout to use the A4 page size using the PageSize object.
See this example that generates a report with A4 page dimensions: https://www.mathworks.com/help/rptgen/ug/customize-the-page-size-and-margins-of-a-report-programmatically.html
-Rahul