Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jasper reports 如何删除jr:表的列标题处的空行空间?_Jasper Reports - Fatal编程技术网

Jasper reports 如何删除jr:表的列标题处的空行空间?

Jasper reports 如何删除jr:表的列标题处的空行空间?,jasper-reports,Jasper Reports,我的报告有些问题。我的报告中有一个表格显示了一些信息,如下图所示: 但是,当我生成文件时,它显示一个空行,如下图所示: 我的表格有以下代码: <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://j

我的报告有些问题。我的报告中有一个表格显示了一些信息,如下图所示:

但是,当我生成文件时,它显示一个空行,如下图所示:

我的表格有以下代码:

<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" 
xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" 
whenNoDataType="AllSectionsNoDetail">
    <datasetRun subDataset="ERP BD" uuid="a3124a63-2f0e-439b-8076-19e62521f2c4">
        <datasetParameter name="_IDCLIENTE">
            <datasetParameterExpression><![CDATA[$F{IDCLIENTEERP}]]></datasetParameterExpression>
        </datasetParameter>
        <connectionExpression><![CDATA[$P{_ERP_CONNECTION}]]></connectionExpression>
    </datasetRun>
    <jr:column width="75" uuid="21a9bef0-6162-454f-b5a7-f2e909e86384">
        <jr:tableHeader height="10" rowSpan="1">
            <staticText>
                <reportElement x="0" y="0" width="75" height="10" uuid="959dff12-eff7-4c78-89d0-ccf8b817b278"/>
                <textElement verticalAlignment="Top">
                    <font fontName="SansSerif" size="6"/>
                </textElement>
                <text><![CDATA[Código:]]></text>
            </staticText>
        </jr:tableHeader>
        <jr:tableFooter height="10" rowSpan="1">
            <staticText>
                <reportElement x="0" y="0" width="75" height="10" uuid="1894ffb4-b976-428e-886e-aed2e584c4a8"/>
                <textElement verticalAlignment="Top">
                    <font fontName="SansSerif" size="6"/>
                </textElement>
                <text><![CDATA[Cnpj/Cpf:]]></text>
            </staticText>
        </jr:tableFooter>
        <jr:columnHeader height="10" rowSpan="1">
            <staticText>
                <reportElement x="0" y="0" width="75" height="10" uuid="08fa2169-87df-4588-9bee-6a423cce4153"/>
                <textElement verticalAlignment="Bottom">
                    <font fontName="SansSerif" size="6"/>
                </textElement>
                <text><![CDATA[Nome:]]></text>
            </staticText>
        </jr:columnHeader>
        <jr:columnFooter height="10" rowSpan="1">
            <staticText>
                <reportElement x="0" y="0" width="75" height="10" uuid="4fadf9ed-3bb5-48ca-b7e3-72672d320fc5"/>
                <textElement verticalAlignment="Top">
                    <font fontName="SansSerif" size="6"/>
                </textElement>
                <text><![CDATA[Cidade:]]></text>
            </staticText>
        </jr:columnFooter>
        <jr:detailCell height="10" rowSpan="1">
            <staticText>
                <reportElement x="0" y="0" width="75" height="10" uuid="0d3ca4d2-bf4d-4874-85a7-7c4ce6a463de"/>
                <textElement verticalAlignment="Top">
                    <font fontName="SansSerif" size="6"/>
                </textElement>
                <text><![CDATA[End.:]]></text>
            </staticText>
        </jr:detailCell>
    </jr:column>
</jr:table>

我所有的专栏看起来都像上面的专栏


如何删除我报告中的那一行?

$F(EMI_FANTASIA).trim()
@Marcelo您可以尝试
positionType=“Float”
(对于End textField)+
isStretchWithOverflow=“true”
(对于Name textField)。更多信息:&@AlexK我已经测试了你的提示,但我无法解决我的问题。但是,当我移动报表的某些元素时,空白行更改了位置。我想我得再做一次报告。谢谢您的回答。您应该提问并粘贴小jrxml以重现您的问题您的代码与屏幕截图不一致。
$F(EMI_FANTASIA).trim()
@Marcelo您可以尝试
positionType=“Float”
(对于End textField)+
isStretchWithOverflow=“true”
(对于Name textField)。更多信息:&@AlexK我已经测试了你的提示,但我无法解决我的问题。但是,当我移动报表的某些元素时,空白行更改了位置。我想我得再做一次报告。谢谢你的回答。你应该提问并粘贴小jrxml来重现你的问题。你的代码与截图不符。