LESSON: Why Excel Cell Exported From Jasper Server Has No Grid Displayed

1. Problem Description

Environment: Jasper Studio 5.6.2 community edition., Jasper Server 5.6.2 community edition (minimal installation).

Excel exporter setting:

<bean id="xlsExportParameters" class="com.jaspersoft.jasperserver.api.engine.jasperreports.common.XlsExportParametersBean">
        <property name="detectCellType" value="true"/>
        <property name="onePagePerSheet" value="true"/>
        <property name="removeEmptySpaceBetweenRows" value="false"/>
        <property name="removeEmptySpaceBetweenColumns" value="false"/>
        <property name="whitePageBackground" value="true"/>
        <property name="ignoreGraphics" value="false"/>
        <property name="collapseRowSpan" value="true"/>
        <property name="ignoreCellBorder" value="false"/>
        <property name="fontSizeFixEnabled" value="true"/>
        <property name="maximumRowsPerSheet" value="0"/>
        <property name="xlsFormatPatternsMap" ref="formatPatternsMap"/>
    </bean>

During jasper report development, I met an annoying problem, there is no grid in the exported excel, and the excel looks really bad, shown as below,

LESSON: Why Excel Cell Exported From Jasper Server Has No Grid Displayed_第1张图片

2. Analysis and Solution

In short, we should set all table styles as 'transparent'.

LESSON: Why Excel Cell Exported From Jasper Server Has No Grid Displayed_第2张图片



你可能感兴趣的:(LESSON: Why Excel Cell Exported From Jasper Server Has No Grid Displayed)