Set background color in textfield from condition using iReport - jasper-reports

I have a problem with conditionalStyle in iReport. I have the following textFields (${nameField} = field value):
${field1}=30 ${field2}=40 ${field3}=50
${field4}=23 ${field5}=1 ${field6}=45
${field7}=34 ${field8}=20 ${field9}=0
I need set difference background in every textField depend of the value of the field. I create a new Style and set the conditions:
<style name="ColoredField">
<conditionalStyle>
<conditionExpression><![CDATA[$F{field1} == 300]]></conditionExpression>
<style mode="Opaque" backcolor="#FCFF00"/>
</conditionalStyle>
</style>
As you can see, the Style use only $F{field1}, and I need make a dynamic style (or something), that apply to every textField.

Your question is not clear, can you be more explicit ?
From my understanding , each value will mean a specific background for a textfield, in that case your conditional style value should depend on variable. Maybe using Variables in your style can suit your need.
Add multiple conditional style under each style as below:
each textField can now have different background :
<style name="ColoredField">
<conditionalStyle>
<conditionExpression><![CDATA[$F{field1} == 100]]></conditionExpression>
<style mode="Opaque" backcolor="#FCFFFF"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[$F{fiCeld1} == 200]]></conditionExpression>
<style mode="Opaque" backcolor="#00FF00"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[$F{field1} == 300]]></conditionExpression>
<style mode="Opaque" backcolor="#FCFF00"/>
</conditionalStyle>
</style>

I could not find a direct way to accomplish this task - you have to create a separate style for each field.
Considering this you can concentrate your effort on creating a small script that replicate the XML with the same stile for the fields you have. Then you can just copy/paste the XML into the report source file. Each time you need to change the style you will have to go back to your XML generator.

Try ths one :
<style name="myStyle" fontName="Arial">
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($V{SANCTION_AMOUNT_MEASURE}.intValue() == 100)]]></conditionExpression>
<style forecolor="#FF0000" isBold="true"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($V{SANCTION_AMOUNT_MEASURE}.intValue() == 200)]]></conditionExpression>
<style forecolor="#00FF00" isBold="true"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($V{SANCTION_AMOUNT_MEASURE}.intValue() == 300)]]></conditionExpression>
<style forecolor="#0000FF" isBold="true"/>
</conditionalStyle>
</style>

Related

How to display the text field component together with graph on dashboard?

I need you help.
The problem is as follows:
I created the report.
I want to add this report on dashboard. But there is a problem. When I add this report on dashboard, the View button isn't displayed. View - text field.
Why does this occur? and how to make so that "View" also is displayed?
Source code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0 -->
<!-- 2016-01-26T23:23:55 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Summary_Clicks Report_2" pageWidth="612" pageHeight="792" columnWidth="572" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="9ac8b394-36b0-409a-8a94-b8147d9c2d20">
<property name="net.sf.jasperreports.export.xls.collapse.row.span" value="false"/>
<property name="net.sf.jasperreports.export.html.border.collapse" value="separate"/>
<property name="net.sf.jasperreports.export.docx.frames.as.nested.tables" value="false"/>
<property name="com.jaspersoft.jasperserver.adhoc.actual.size" value="true"/>
<property name="com.jaspersoft.jasperserver.adhoc.group.indent" value="0"/>
<property name="com.jaspersoft.jasperserver.adhoc.min.group.label.width" value="100"/>
<property name="com.jaspersoft.jasperserver.adhoc.detail.band.height" value="25"/>
<property name="com.jaspersoft.jasperserver.adhoc.header.band.height" value="25"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.row.header.width" value="125"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.cell.width" value="100"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.cell.height" value="20"/>
<property name="com.jaspersoft.ji.adhoc" value="1"/>
<property name="com.jaspersoft.ji.adhoc.preferredDataStrategy" value="domainDataStrategy"/>
<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>
<property name="net.sf.jasperreports.text.truncate.suffix" value="..."/>
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
<property name="net.sf.jasperreports.export.xls.ignore.graphics" value="false"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="false"/>
<property name="ireport.jasperserver.url" value="http://stats.trackif.com/jasperserver-pro/services/repository/"/>
<property name="ireport.jasperserver.user" value="superuser"/>
<property name="ireport.jasperserver.reportUnit" value="/organizations/organization_1/reports/Summary_Clicks_Report_2"/>
<property name="ireport.jasperserver.report.resource" value="/organizations/organization_1/reports/Summary_Clicks_Report_2_files/mainReportJrxml"/>
<import value="com.jaspersoft.ji.adhoc.jr.AdhocReportUtils"/>
<import value="com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl"/>
<style name="ReportDefault" isDefault="true" mode="Transparent" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11">
<box>
<pen lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableBaseFrameStyle" mode="Transparent">
<box padding="0">
<pen lineWidth="0.0"/>
</box>
</style>
<style name="TableFrameStyle" style="TableBaseFrameStyle">
<box padding="1">
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnHeaderFrameStyle" style="TableBaseFrameStyle">
<box>
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnFooterFrameStyle" style="TableBaseFrameStyle">
<box>
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnHeaderTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#D5DEE8" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineColor="#FFFFFF"/>
<leftPen lineWidth="1.0" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineColor="#B1B6BB"/>
<rightPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="TableGroupHeaderFrameStyle" style="TableBaseFrameStyle" mode="Opaque" backcolor="#E3E9EF">
<box>
<topPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="TableGroupHeaderTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#E3E9EF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#B1B6BB"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
</style>
<style name="TableGroupFooterFrameStyle" style="TableBaseFrameStyle" mode="Opaque" backcolor="#E7ECF2">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="TableGroupFooterTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#E7ECF2" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="TableSummaryFrameStyle" style="TableBaseFrameStyle">
<box>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableSummaryTextNoBorderStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" fontName="DejaVu Sans" isBold="true">
<box leftPadding="5" rightPadding="5"/>
</style>
<style name="TableSummaryTextStyle" style="TableSummaryTextNoBorderStyle">
<box>
<pen lineWidth="1.0"/>
</box>
</style>
<style name="TableTitleFrameStyle" style="TableFrameStyle">
<box topPadding="0" bottomPadding="0">
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
</style>
<style name="TableTitleTextStyle" style="ReportDefault" mode="Opaque" forecolor="#333333" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" fontSize="18" isBold="false">
<box bottomPadding="8">
<pen lineColor="#000000"/>
<topPen lineWidth="0.0"/>
</box>
</style>
<style name="TableDetailFrameStyle" style="TableBaseFrameStyle">
<box>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableDetailTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="false">
<box leftPadding="5" rightPadding="5">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="ChartReportTitle" style="ReportDefault" mode="Opaque" forecolor="#333333" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" fontSize="18" isBold="false">
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
</box>
</style>
<style name="ChartTitle" forecolor="#000000" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
<style name="ChartSubtitle" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartLegend" forecolor="#000000" backcolor="#FFFFFF" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartSeriesColor0" backcolor="#87C4FE"/>
<style name="ChartSeriesColor1" backcolor="#E96270"/>
<style name="ChartSeriesColor2" backcolor="#D1D1D1"/>
<style name="ChartSeriesColor3" backcolor="#FFEE99"/>
<style name="ChartSeriesColor4" backcolor="#6164FF"/>
<style name="ChartSeriesColor5" backcolor="#B0E992"/>
<style name="ChartSeriesColor6" backcolor="#AE9CEA"/>
<style name="ChartSeriesColor7" backcolor="#F5B05E"/>
<style name="ChartSeriesColor8" backcolor="#589EE1"/>
<style name="ChartSeriesColor9" backcolor="#AE4E59"/>
<style name="ChartSeriesColor10" backcolor="#747474"/>
<style name="ChartSeriesColor11" backcolor="#E2DC77"/>
<style name="ChartSeriesColor12" backcolor="#4749A5"/>
<style name="ChartSeriesColor13" backcolor="#81B963"/>
<style name="ChartSeriesColor14" backcolor="#7764B4"/>
<style name="ChartSeriesColor15" backcolor="#F27B4C"/>
<style name="ChartCategoryAxisLabelFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="11" isBold="true"/>
<style name="ChartCategoryAxisTickFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartValueAxisLabelFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="11" isBold="true"/>
<style name="ChartValueAxisTickFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartContext" backcolor="#D1CA67"/>
<style name="CrosstabElementStyle" mode="Transparent" forecolor="#000033" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11">
<box bottomPadding="1" rightPadding="1">
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="CrosstabBaseCellStyle" mode="Transparent">
<box padding="0">
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabBaseTextStyle" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Top" vImageAlign="Top" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box topPadding="3" leftPadding="5" bottomPadding="3" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#FFFFFF"/>
<leftPen lineWidth="1.0" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineColor="#B1B6BB"/>
<rightPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="CrosstabTitleTextStyle" style="CrosstabBaseTextStyle" forecolor="#333333" fontSize="18" isBold="false">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="CrosstabHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D5DEE8"/>
<style name="CrosstabHeaderLabelStyle" style="CrosstabHeaderTextStyle" mode="Transparent">
<box>
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabMeasureHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D3C8EB"/>
<style name="CrosstabMeasureHeaderLabelStyle" style="CrosstabMeasureHeaderTextStyle" mode="Transparent">
<box>
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabColumnMeasureHeaderTextStyle" style="CrosstabMeasureHeaderTextStyle"/>
<style name="CrosstabRowMeasureHeaderTextStyle" style="CrosstabMeasureHeaderTextStyle" isBold="false"/>
<style name="CrosstabDimensionHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#E7ECF2" isBold="false"/>
<style name="CrosstabDetailTextStyle" style="CrosstabBaseTextStyle" backcolor="#FFFFFF" hTextAlign="Right" hImageAlign="Right" isBold="false">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
<conditionalStyle>
<conditionExpression><![CDATA[$V{CROSSTAB_TOTAL_DISCRIMINATOR}]]></conditionExpression>
<style backcolor="#F0F4F8" hTextAlign="Right" hImageAlign="Right" isBold="true">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
</conditionalStyle>
</style>
<style name="CrosstabDummyHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D4D4D4"/>
<parameter name="REPORT_TITLE" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
<defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter>
<parameter name="_JRS_ADHOC_CHART_STATE" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
</parameter>
<parameter name="_JRS_ADHOC_QUERY_DATA" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
</parameter>
<field name="summary_date" class="java.sql.Timestamp"/>
<field name="public_dashboard_by_day_materialized.clicks_count1" class="java.lang.Long">
<fieldDescription><![CDATA[public_dashboard_by_day_materialized.clicks_count1]]></fieldDescription>
</field>
<field name="public_dashboard_by_day_materialized.summary_date1" class="java.sql.Timestamp">
<fieldDescription><![CDATA[public_dashboard_by_day_materialized.summary_date1]]></fieldDescription>
</field>
<field name="Sum_clicks_count" class="java.lang.Long"/>
<title>
<band height="621" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<componentElement>
<reportElement key="chart" positionType="Float" mode="Opaque" x="-11" y="70" width="572" height="265" uuid="32d0daf7-6eea-46f4-bfcf-e0f9bdb5ce46"/>
<jrhc:chart xmlns:jrhc="http://jaspersoft.com/highcharts" xsi:schemaLocation="http://jaspersoft.com/highcharts http://jaspersoft.com/schema/highcharts.xsd" type="Area" preferredHeight="353" evaluationTime="Page">
<jrhc:chartSetting name="_jrs_adhoc">
<jrhc:chartProperty name="_JRS_ADHOC_CHART_STATE">
<jrhc:propertyExpression><![CDATA[$P{_JRS_ADHOC_CHART_STATE}]]></jrhc:propertyExpression>
</jrhc:chartProperty>
<jrhc:chartProperty name="_JRS_ADHOC_QUERY_DATA">
<jrhc:propertyExpression><![CDATA[$P{_JRS_ADHOC_QUERY_DATA}]]></jrhc:propertyExpression>
</jrhc:chartProperty>
</jrhc:chartSetting>
</jrhc:chart>
</componentElement>
<textField hyperlinkType="Reference" hyperlinkTarget="Blank">
<reportElement mode="Opaque" x="240" y="30" width="119" height="30" isPrintInFirstWholeBand="true" forecolor="#FFFFFF" backcolor="#7FFF00" uuid="010a3c43-3629-455a-a522-2dad2b5e33cd">
<property name="net.sf.jasperreports.export.html.class" value="btn"/>
<property name="net.sf.jasperreports.export.html.id" value="idBtn"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="24"/>
</textElement>
<textFieldExpression><![CDATA["View"]]></textFieldExpression>
<anchorNameExpression><![CDATA["myButton"]]></anchorNameExpression>
<hyperlinkReferenceExpression><![CDATA["http://google.ru"]]></hyperlinkReferenceExpression>
<hyperlinkTooltipExpression><![CDATA["Click to view"]]></hyperlinkTooltipExpression>
</textField>
</band>
</title>
</jasperReport>
I created the button in the standard report. As example. There the same problem is observed.
Maybe you will be able to reproduce this code?
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0 -->
<!-- 2016-01-27T00:02:06 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="06. Sales Mix by Gender Report" pageWidth="612" pageHeight="792" columnWidth="572" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="7bd0a5cf-8cc1-4e6d-8ed7-178a04c17a8c">
<property name="net.sf.jasperreports.export.xls.collapse.row.span" value="false"/>
<property name="net.sf.jasperreports.export.html.border.collapse" value="separate"/>
<property name="net.sf.jasperreports.export.docx.frames.as.nested.tables" value="false"/>
<property name="com.jaspersoft.jasperserver.adhoc.actual.size" value="true"/>
<property name="com.jaspersoft.jasperserver.adhoc.group.indent" value="0"/>
<property name="com.jaspersoft.jasperserver.adhoc.min.group.label.width" value="100"/>
<property name="com.jaspersoft.jasperserver.adhoc.detail.band.height" value="25"/>
<property name="com.jaspersoft.jasperserver.adhoc.header.band.height" value="25"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.row.header.width" value="125"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.cell.width" value="100"/>
<property name="com.jaspersoft.jasperserver.adhoc.crosstab.cell.height" value="20"/>
<property name="com.jaspersoft.ji.adhoc" value="1"/>
<property name="com.jaspersoft.ji.adhoc.preferredDataStrategy" value="sqlQueryDataStrategy"/>
<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>
<property name="net.sf.jasperreports.text.truncate.suffix" value="..."/>
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
<property name="net.sf.jasperreports.export.xls.ignore.graphics" value="false"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="false"/>
<property name="ireport.jasperserver.url" value="http://stats.trackif.com/jasperserver-pro/services/repository/"/>
<property name="ireport.jasperserver.user" value="superuser"/>
<property name="ireport.jasperserver.reportUnit" value="/public/Samples/Reports/Report_for_example"/>
<property name="ireport.jasperserver.report.resource" value="/public/Samples/Reports/Report_for_example_files/mainReportJrxml"/>
<import value="com.jaspersoft.ji.adhoc.jr.AdhocReportUtils"/>
<import value="com.jaspersoft.ji.adhoc.service.AdhocEngineServiceImpl"/>
<style name="ReportDefault" isDefault="true" mode="Transparent" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11">
<box>
<pen lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableBaseFrameStyle" mode="Transparent">
<box padding="0">
<pen lineWidth="0.0"/>
</box>
</style>
<style name="TableFrameStyle" style="TableBaseFrameStyle">
<box padding="1">
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnHeaderFrameStyle" style="TableBaseFrameStyle">
<box>
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnFooterFrameStyle" style="TableBaseFrameStyle">
<box>
<topPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableColumnHeaderTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#D5DEE8" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineColor="#FFFFFF"/>
<leftPen lineWidth="1.0" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineColor="#B1B6BB"/>
<rightPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="TableGroupHeaderFrameStyle" style="TableBaseFrameStyle" mode="Opaque" backcolor="#E3E9EF">
<box>
<topPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="TableGroupHeaderTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#E3E9EF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#B1B6BB"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
</style>
<style name="TableGroupFooterFrameStyle" style="TableBaseFrameStyle" mode="Opaque" backcolor="#E7ECF2">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="TableGroupFooterTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#E7ECF2" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box leftPadding="5" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="TableSummaryFrameStyle" style="TableBaseFrameStyle">
<box>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableSummaryTextNoBorderStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" fontName="DejaVu Sans" isBold="true">
<box leftPadding="5" rightPadding="5"/>
</style>
<style name="TableSummaryTextStyle" style="TableSummaryTextNoBorderStyle">
<box>
<pen lineWidth="1.0"/>
</box>
</style>
<style name="TableTitleFrameStyle" style="TableFrameStyle">
<box topPadding="0" bottomPadding="0">
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
</style>
<style name="TableTitleTextStyle" style="ReportDefault" mode="Opaque" forecolor="#333333" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" fontSize="18" isBold="false">
<box bottomPadding="8">
<pen lineColor="#000000"/>
<topPen lineWidth="0.0"/>
</box>
</style>
<style name="TableDetailFrameStyle" style="TableBaseFrameStyle">
<box>
<leftPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="TableDetailTextStyle" style="ReportDefault" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11" isBold="false">
<box leftPadding="5" rightPadding="5">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
<style name="ChartReportTitle" style="ReportDefault" mode="Opaque" forecolor="#333333" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" fontSize="18" isBold="false">
<box>
<pen lineColor="#000000"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
</box>
</style>
<style name="ChartTitle" forecolor="#000000" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
<style name="ChartSubtitle" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartLegend" forecolor="#000000" backcolor="#FFFFFF" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartSeriesColor0" backcolor="#87C4FE"/>
<style name="ChartSeriesColor1" backcolor="#E96270"/>
<style name="ChartSeriesColor2" backcolor="#D1D1D1"/>
<style name="ChartSeriesColor3" backcolor="#FFEE99"/>
<style name="ChartSeriesColor4" backcolor="#6164FF"/>
<style name="ChartSeriesColor5" backcolor="#B0E992"/>
<style name="ChartSeriesColor6" backcolor="#AE9CEA"/>
<style name="ChartSeriesColor7" backcolor="#F5B05E"/>
<style name="ChartSeriesColor8" backcolor="#589EE1"/>
<style name="ChartSeriesColor9" backcolor="#AE4E59"/>
<style name="ChartSeriesColor10" backcolor="#747474"/>
<style name="ChartSeriesColor11" backcolor="#E2DC77"/>
<style name="ChartSeriesColor12" backcolor="#4749A5"/>
<style name="ChartSeriesColor13" backcolor="#81B963"/>
<style name="ChartSeriesColor14" backcolor="#7764B4"/>
<style name="ChartSeriesColor15" backcolor="#F27B4C"/>
<style name="ChartCategoryAxisLabelFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="11" isBold="true"/>
<style name="ChartCategoryAxisTickFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartValueAxisLabelFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="11" isBold="true"/>
<style name="ChartValueAxisTickFormat" forecolor="#000000" fontName="DejaVu Sans" fontSize="9" isBold="false"/>
<style name="ChartContext" backcolor="#D1CA67"/>
<style name="CrosstabElementStyle" mode="Transparent" forecolor="#000033" backcolor="#FFFFFF" hTextAlign="Center" hImageAlign="Center" vTextAlign="Middle" vImageAlign="Middle" fontName="DejaVu Sans" fontSize="11">
<box bottomPadding="1" rightPadding="1">
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineColor="#AAAAAA"/>
<rightPen lineWidth="1.0" lineColor="#AAAAAA"/>
</box>
</style>
<style name="CrosstabBaseCellStyle" mode="Transparent">
<box padding="0">
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabBaseTextStyle" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" hTextAlign="Left" hImageAlign="Left" vTextAlign="Top" vImageAlign="Top" fontName="DejaVu Sans" fontSize="11" isBold="true">
<box topPadding="3" leftPadding="5" bottomPadding="3" rightPadding="5">
<topPen lineWidth="1.0" lineColor="#FFFFFF"/>
<leftPen lineWidth="1.0" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineColor="#B1B6BB"/>
<rightPen lineWidth="1.0" lineColor="#B1B6BB"/>
</box>
</style>
<style name="CrosstabTitleTextStyle" style="CrosstabBaseTextStyle" forecolor="#333333" fontSize="18" isBold="false">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="CrosstabHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D5DEE8"/>
<style name="CrosstabHeaderLabelStyle" style="CrosstabHeaderTextStyle" mode="Transparent">
<box>
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabMeasureHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D3C8EB"/>
<style name="CrosstabMeasureHeaderLabelStyle" style="CrosstabMeasureHeaderTextStyle" mode="Transparent">
<box>
<pen lineWidth="0.0"/>
</box>
</style>
<style name="CrosstabColumnMeasureHeaderTextStyle" style="CrosstabMeasureHeaderTextStyle"/>
<style name="CrosstabRowMeasureHeaderTextStyle" style="CrosstabMeasureHeaderTextStyle" isBold="false"/>
<style name="CrosstabDimensionHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#E7ECF2" isBold="false"/>
<style name="CrosstabDetailTextStyle" style="CrosstabBaseTextStyle" backcolor="#FFFFFF" hTextAlign="Right" hImageAlign="Right" isBold="false">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
<conditionalStyle>
<conditionExpression><![CDATA[$V{CROSSTAB_TOTAL_DISCRIMINATOR}]]></conditionExpression>
<style backcolor="#F0F4F8" hTextAlign="Right" hImageAlign="Right" isBold="true">
<box>
<topPen lineWidth="1.0" lineColor="#E3E9EF"/>
<leftPen lineWidth="1.0" lineColor="#E3E9EF"/>
<bottomPen lineWidth="1.0" lineColor="#E3E9EF"/>
<rightPen lineWidth="1.0" lineColor="#E3E9EF"/>
</box>
</style>
</conditionalStyle>
</style>
<style name="CrosstabDummyHeaderTextStyle" style="CrosstabBaseTextStyle" backcolor="#D4D4D4"/>
<parameter name="REPORT_TITLE" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
<defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter>
<parameter name="_JRS_ADHOC_CHART_STATE" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
</parameter>
<parameter name="_JRS_ADHOC_QUERY_DATA" class="java.lang.String" isForPrompting="false">
<property name="net.sf.jasperreports.data.cache.included" value="true"/>
</parameter>
<field name="c_gender" class="java.lang.String">
<fieldDescription><![CDATA[c_gender]]></fieldDescription>
</field>
<field name="store_sales" class="java.lang.Double">
<fieldDescription><![CDATA[store_sales]]></fieldDescription>
</field>
<field name="product_family" class="java.lang.String">
<fieldDescription><![CDATA[product_family]]></fieldDescription>
</field>
<field name="c_country" class="java.lang.String">
<fieldDescription><![CDATA[c_country]]></fieldDescription>
</field>
<field name="Sum_store_sales" class="java.lang.Double"/>
<field name="quarter" class="java.lang.String">
<fieldDescription><![CDATA[quarter]]></fieldDescription>
</field>
<title>
<band height="335" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement key="staticText" style="ChartReportTitle" x="0" y="0" width="572" height="0" uuid="487722f7-0dd2-4fb0-86f6-e937ad83ff06">
<printWhenExpression><![CDATA[$P{REPORT_TITLE} != null && $P{REPORT_TITLE}.length() > 0]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$P{REPORT_TITLE}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement key="chart" positionType="Float" mode="Opaque" x="5" y="5" width="572" height="330" uuid="8bc741d5-26ae-4474-a53f-d5ab6beb9a31"/>
<jrhc:chart xmlns:jrhc="http://jaspersoft.com/highcharts" xsi:schemaLocation="http://jaspersoft.com/highcharts http://jaspersoft.com/schema/highcharts.xsd" type="StackedPercentBar" preferredHeight="353">
<jrhc:chartSetting name="_jrs_adhoc">
<jrhc:chartProperty name="_JRS_ADHOC_CHART_STATE">
<jrhc:propertyExpression><![CDATA[$P{_JRS_ADHOC_CHART_STATE}]]></jrhc:propertyExpression>
</jrhc:chartProperty>
<jrhc:chartProperty name="_JRS_ADHOC_QUERY_DATA">
<jrhc:propertyExpression><![CDATA[$P{_JRS_ADHOC_QUERY_DATA}]]></jrhc:propertyExpression>
</jrhc:chartProperty>
</jrhc:chartSetting>
</jrhc:chart>
</componentElement>
</band>
</title>
<summary>
<band height="138" splitType="Stretch">
<textField hyperlinkType="Reference" hyperlinkTarget="Blank">
<reportElement mode="Opaque" x="220" y="15" width="119" height="30" forecolor="#FFFFFF" backcolor="#7FFF00" uuid="65c04b7a-29e2-45b2-ad37-ff22d0c14032">
<property name="net.sf.jasperreports.export.html.class" value="btn"/>
<property name="net.sf.jasperreports.export.html.id" value="idBtn"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="24"/>
</textElement>
<textFieldExpression><![CDATA["View"]]></textFieldExpression>
<anchorNameExpression><![CDATA["myButton"]]></anchorNameExpression>
<hyperlinkReferenceExpression><![CDATA["http://google.ru"]]></hyperlinkReferenceExpression>
<hyperlinkTooltipExpression><![CDATA["Click to view"]]></hyperlinkTooltipExpression>
</textField>
</band>
</summary>
</jasperReport>

JasperReport : Apply margin to textfield conditionally

I want to set a margin-bottom to TextFields based on a condition (let's say : value1 == true).
I haven't found informations about margins applied on textfields.
Thanks.
Do you know something about conditional styles in Jasper reports?
Below is the sample for your scenario
<style name="Style1">
<conditionalStyle>
<conditionExpression><![CDATA[$F{value1} == true]]></conditionExpression>
<style>
<box bottomPadding="10">
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</style>
</conditionalStyle>
</style>
For the text field use style "Style1".
Hope this should solve your question

Error filling print, Could not resolve style(s):{blank_style_name}

I have a problem with iReport, I am using iReport Designer 5.0.1.
It said that the iReport can not resolve styles, but it didn't tell which style is it. Only blank name after colon. And the most vague things is, the style is working in my other jrxml report files.
This is my style codes:
<style name="Kolom" mode="Opaque" forecolor="#FFFFFF" backcolor="#757575" fill="Solid" vAlign="Middle" fontName="Serif" fontSize="12" isBold="false">
<box topPadding="2" leftPadding="4" bottomPadding="2" rightPadding="2">
<pen lineWidth="0.55" lineColor="#616161"/>
<topPen lineWidth="0.55" lineColor="#616161"/>
<leftPen lineWidth="0.55" lineColor="#616161"/>
<bottomPen lineWidth="0.55" lineColor="#616161"/>
<rightPen lineWidth="0.55" lineColor="#616161"/>
</box>
<paragraph lineSpacing="Single"/>
</style>
<style name="Baris" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" fill="Solid" vAlign="Middle" fontName="Serif" fontSize="11" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false">
<pen lineWidth="1.0" lineColor="#FF6666"/>
<box topPadding="2" leftPadding="4" bottomPadding="2" rightPadding="2">
<pen lineWidth="0.55" lineColor="#CCCCFF"/>
<topPen lineWidth="0.55" lineColor="#CCCCFF"/>
<leftPen lineWidth="0.55" lineColor="#CCCCFF"/>
<bottomPen lineWidth="0.55" lineColor="#CCCCFF"/>
<rightPen lineWidth="0.55" lineColor="#CCCCFF"/>
</box>
<paragraph lineSpacing="Single"/>
</style>
And the iReport Output shows:
Error filling print... Could not resolve style(s): 
net.sf.jasperreports.engine.JRRuntimeException: Could not resolve style(s):       at net.sf.jasperreports.engine.fill.JRFillObjectFactory.checkUnresolvedReferences(JRFillObjectFactory.java:1579)      at net.sf.jasperreports.engine.fill.JRFillObjectFactory.setStyles(JRFillObjectFactory.java:1506)      at net.sf.jasperreports.engine.fill.JRBaseFiller.loadStyles(JRBaseFiller.java:1005)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:822)      at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61)      at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446)      at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:276)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:745)      at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:891)      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Print not filled. Try to use an EmptyDataSource...
Please look for this style="" in your jrxml file and delete all occurrences of those.
This worked for me. I hope it helps but let me know.
Good luck
I received this error while copying "Table element" from another jrxml file.
Later identified that the style information should also be copied.
Please check if this resolves your issue.

Creating a Report with No Data in iReport

I have a customer who has a requirement that they want the ability to print a blank report. In an effort to accomplish this I've created a copy of my original report and removed my SQL queries, parameters, and fields; and have set all the fields to static text fields with underlines. This would allow the user to print the report an manually fill in the form.
However, when I go to preview the report I only see the Title band. I've tried setting the 'When No Data' field to all 4 different settings but no luck. Does anyone have any pointers?
Edit: Here is the beginning XML for reference
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge. net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="FormD Blank" pageWidth="612" pageHeight="792" whenNoDataType="AllSectionsNoDetail" columnWidth=" 552" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="d26d959f-1b4a-435a-a2e4-231bf461293c">
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<property name="ireport.zoom" value="1.3636363636363646"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA[".\\"]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[]]>
</queryString>
I did confirm what Mike Noland had suggested. That if you create an empty data source with one empty row then that works.
Here are the steps I took: Creating a Blank iReport

How do I use paragraph to replace deprecated lineSpacing attribute

I'm using JasperReports. When I generate my reports, I see this message a lot:
JRAbstractStyleFactory - The 'lineSpacing' attribute is deprecated.
Use the <paragraph> tag instead.
I have not found any information on how to use the paragraph tag to replace lineSpacing; what is the correct way to do this?
The error message says to replace an attribute with a tag. That means, instead of this:
<style name="my_style" lineSpacing="Double" fontName="Univers" fontSize="9"/>
use this:
<style name="my_style" fontName="Univers" fontSize="9">
<paragraph lineSpacing="Double"/>
</style>
And instead of this:
<textElement verticalAlignment="Top" lineSpacing="Double" markup="styled"/>
use this:
<textElement verticalAlignment="Top" markup="styled">
<paragraph lineSpacing="Double"/>
</textElement>
That resolves all of the warnings.