how to change background color in jasper report when exporting to html, but the col开发者_如何学Goors appears when exporting to PDF.
Look at http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRHtmlExporterParameter.html#IS_WHITE_PAGE_BACKGROUND
IS_WHITE_PAGE_BACKGROUND
public static final JRHtmlExporterParameter IS_WHITE_PAGE_BACKGROUND
A boolean value specifying whether the report background should be white. If this parameter is not set, the default background will appear, depending on the selected CSS styles.
PROPERTY_WHITE_PAGE_BACKGROUND
public static final java.lang.String PROPERTY_WHITE_PAGE_BACKGROUND
Property whose value is used as default state of the IS_WHITE_PAGE_BACKGROUND export flag.
This property is set by default (true).
See Also:
JRProperties, Constant Field Values
精彩评论