Jasper - Com mais de 11 colunas, segunda linha de segunda coluna não é exibido com fundo cinza

0 respostas
josmarpeixe

Pessoal Boa Tarde,

Andei vasculhando aqui e no Google, mas parece que ninguém teve o mesmo problema. Pois bem, tenho um relatório dinâmico que quando eu peço para ele gerar com mais de 11 colunas, a segunda linha da segunda coluna é exibido sem o fundo cinza. Alguém já teve algum problema parecido?
<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="DynamicReport"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="842"
		 pageHeight="595"
		 columnWidth="802"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="10"
		 topMargin="20"
		 bottomMargin="10"
		 whenNoDataType="NoPages"
		 scriptletClass="ar.com.fdvs.dj.core.DJDefaultScriptlet"
		 isTitleNewPage="false"
		 isSummaryNewPage="false"
		 whenResourceMissingType="Key">
	<property name="ireport.scriptlethandling" value="2" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<style 
		name="reportTitleStyle"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Center"
		vAlign="Top"
		rotation="None"
		fontName="Arial"
		fontSize="14"
		isBold="true"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="reportSubtitleStyle"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="defaultHeaderStyle"
		isDefault="false"
		mode="Opaque"
		forecolor="#000000"
		backcolor="#C0C0C0"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Center"
		vAlign="Middle"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="true"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="defaultDetailStyle"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="Arial_for_group_0"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="Arial_for_group_1"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="Arial_for_column_COLUMN_0"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_0"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="Arial_for_column_COLUMN_1"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_1"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="Arial_for_column_COLUMN_2"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_2"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="Arial_for_column_COLUMN_3"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Left"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_3"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="numberStyle"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Right"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="Arial_for_column_COLUMN_4"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Right"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_4"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="Arial_for_column_COLUMN_5"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Right"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_5"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>
	<style 
		name="currencyStyle"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Right"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
	</style>
	<style 
		name="Arial_for_column_COLUMN_6"
		isDefault="false"
		mode="Transparent"
		forecolor="#000000"
		backcolor="#FFFFFF"
		fill="Solid"
		radius="0"
		scaleImage="Clip"
		hAlign="Right"
		vAlign="Bottom"
		rotation="None"
		fontName="Arial"
		fontSize="10"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isPdfEmbedded="false"
		isBlankWhenNull="true"
	>
					<pen lineWidth="0.0" lineStyle="Solid"/>
					<box leftPadding="2" rightPadding="2" topPadding="2" bottomPadding="2">					<pen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

		<conditionalStyle>
			<conditionExpression><![CDATA[new java.lang.Boolean(((Number)$V{REPORT_COUNT}).doubleValue() % 2 == 0)]]></conditionExpression>
			<style 
				isDefault="false"
				style="Arial_for_column_COLUMN_6"
				mode="Opaque"
				backcolor="#C8C8C8"
			>
			</style>
		</conditionalStyle>
	</style>

	<parameter name="IMAGE_PATH" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[Caminho do logo da Promon]]></parameterDescription>
	</parameter>

	<field name="state" class="java.lang.String"/>
	<field name="branch" class="java.lang.String"/>
	<field name="productLine" class="java.lang.String"/>
	<field name="item" class="java.lang.String"/>
	<field name="id" class="java.lang.Long"/>
	<field name="quantity" class="java.lang.Long"/>
	<field name="amount" class="java.lang.Float"/>

	<variable name="Pagina" class="java.lang.String" resetType="Report" incrementType="Page" calculation="Nothing">
	</variable>

		<group  name="group[0]_for_column_0-State" >
			<groupExpression><![CDATA[$F{state}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<group  name="group[1]_for_column_1-Branch" >
			<groupExpression><![CDATA[$F{branch}]]></groupExpression>
			<groupHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupHeader>
			<groupFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
			</groupFooter>
		</group>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="29"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="40"  isSplitAllowed="true" >
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="24"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="702"
						y="3"
						width="100"
						height="18"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="232"
						y="4"
						width="303"
						height="20"
						key="textField-5"/>
					<box></box>
					<textElement textAlignment="Center">
						<font fontName="Times New Roman" size="10"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["® 2009 Promon S.A - Todos os direitos reservados"]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="2"
						width="802"
						height="1"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
Criado 26 de março de 2010
Respostas 0
Participantes 1