The problem is in AbstractLayoutManager method: createUniqueStyleName.
When you add subreport and try to apply styles to its header cells, the style counter in the method will be corrupted as it will start to count again (unaware its in subreport) and consequently apply styles from "Main" report's title/subtitle or autotext in header. This is visible when you are not rendering title/subtitle on the subreport.
The bug is present on docx. export - not sure why it works on .xls.
Here is how I fixed this (did some extends prior to exposing this method ofc):
The problem is in AbstractLayoutManager method: createUniqueStyleName. When you add subreport and try to apply styles to its header cells, the style counter in the method will be corrupted as it will start to count again (unaware its in subreport) and consequently apply styles from "Main" report's title/subtitle or autotext in header. This is visible when you are not rendering title/subtitle on the subreport. The bug is present on docx. export - not sure why it works on .xls.
Here is how I fixed this (did some extends prior to exposing this method ofc):