导出到html时如何更改Jasper报告背景颜色?

时间:2011-08-25 06:38:02

标签: java jasper-reports

导出到html时如何在jasper报告中更改背景颜色,但导出为PDF时会显示颜色。

1 个答案:

答案 0 :(得分:0)

查看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