XLS Exporter decreases a size of Arial font to 1 (from 11 to 10).How to fix this?

Symptom:

The size of Arial font in the report is decreased to 1 (from 11 to 10)

during the export operation to XLS format


There are 2 available solutions for this case:

1. To set the fontSizeFixEnabled

property to false. It is available in
xlsExportParameters bean that can be found in

WEB-INF/applicationContext.xml file.

 

By default this property

is set to true, causing the observed font
decrease. After restarting the server, fonts should

appear with their actual size.

 

This solution will affect all XLS exports, globally.

 


2. To set the

net.sf.jasperreports.export.xls.font.size.fix.enabled

property to false in the JRXML file at report level.

This solution will affect this report only.

Feedback
randomness