有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

如果列类型为Image,则java DynamicAsper不应用条件样式

如果列类型为Image,则DynamicAsper不应用条件样式。对于SetPrintBackgroundOnAddress和addConditionalStyle()来说,这个错误是正确的

如果打印出jrxml文件,则“图像样式”列缺少conditionalStyle标记

Style oddRowStyle = new Style();
oddRowStyle.setBackgroundColor(Color.LIGHT_GRAY);

古怪的风格。setTransparency(Transparency.不透明)

FastReportBuilder reportTemplate = new FastReportBuilder();
reportTemplate.setPrintBackgroundOnOddRows(true)
.setPageSizeAndOrientation(Page.Page_A4_Landscape())
.setOddRowBackgroundStyle(oddRowStyle);

AbstractColumn columnSqlServer = ColumnBuilder.getNew().setColumnProperty(columnProperty.getKey(), Object.class.getName())
                .setColumnType(ColumnBuilder.COLUMN_TYPE_IMAGE)
                .setImageScaleMode(ImageScaleMode.NO_RESIZE)
                //.addConditionalStyle(new ConditionalStyle(new FetchCondition(), columnStyle1)) 
                .setStyle(columnStyle)
                .setHeaderStyle(headerStyle).build();

从生成的jxml文件

<style name="dj_style_3_" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF" radius="0" hAlign="Center" vAlign="Middle" rotation="None" isBlankWhenNull="true" fontName="Verdana" fontSize="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded="false">
    <box padding="2">
        <pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
</style>
<style name="dj_style_4_" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF" radius="0" hAlign="Left" vAlign="Middle" rotation="None" isBlankWhenNull="true" fontName="Verdana" fontSize="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded="false">
    <box padding="2">
        <pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
</style>

奇偶集列

<style name="Verdana_for_column_DJR_3169_COLUMN_1_" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF" radius="0" hAlign="Left" vAlign="Middle" rotation="None" isBlankWhenNull="true" fontName="Verdana" fontSize="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded="false">
    <box padding="2">
        <pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <conditionalStyle>
        <conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
        <style mode="Opaque" backcolor="#C0C0C0"/>
    </conditionalStyle>
</style>

它不见标签了


共 (0) 个答案