关于ireport的简单小问题。高分求解!!!

wudiv998 2009-04-06 04:09:02
为什么我生成的excel总是每隔20多行就生成一行空白行啊?有明白的人能帮忙看看吗?好象是循环输出一样。我在页面查看了,没看出什么不对的地方。请大家帮忙看看吧!!非常的感谢!衷心感谢!

<?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="standardarearegion"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="0"
rightMargin="0"
topMargin="0"
bottomMargin="0"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />

<parameter name="area_code" isForPrompting="false" class="java.lang.String"/>
<parameter name="ori_no" isForPrompting="false" class="java.lang.String"/>
<parameter name="ter_no" isForPrompting="false" class="java.lang.String"/>
<parameter name="ori_event_type" isForPrompting="false" class="java.lang.String"/>
<parameter name="tur_event_type" isForPrompting="false" class="java.lang.String"/>
<queryString><![CDATA[select * from bf_standard_area_region_t]]></queryString>

<field name="AREA_CODE" class="java.lang.String"/>
<field name="ORI_NO" class="java.lang.String"/>
<field name="TER_NO" class="java.lang.String"/>
<field name="ORI_EVENT_TYPE" class="java.lang.String"/>
<field name="TUR_EVENT_TYPE" class="java.lang.String"/>

<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="30" isSplitAllowed="true" >
<staticText>
<reportElement
x="0"
y="0"
width="65"
height="30"
key="staticText-6"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[area_code]]></text>
</staticText>
<staticText>
<reportElement
x="65"
y="0"
width="65"
height="30"
key="staticText-7"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[ori_no]]></text>
</staticText>
<staticText>
<reportElement
x="130"
y="0"
width="65"
height="30"
key="staticText-8"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[ter_no]]></text>
</staticText>
<staticText>
<reportElement
x="195"
y="0"
width="60"
height="30"
key="staticText-9"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[ori_event_type]]></text>
</staticText>
<staticText>
<reportElement
x="255"
y="0"
width="60"
height="30"
key="staticText-10"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<text><![CDATA[tur_event_type]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="30" isSplitAllowed="true" >
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="0"
y="0"
width="65"
height="30"
key="textField-6"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{AREA_CODE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="65"
y="0"
width="65"
height="30"
key="textField-2"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{ORI_NO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="130"
y="0"
width="65"
height="30"
key="textField-7"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{TER_NO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="195"
y="0"
width="60"
height="30"
key="textField-4"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{ORI_EVENT_TYPE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="255"
y="0"
width="60"
height="30"
key="textField-5"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{TUR_EVENT_TYPE}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="0" isSplitAllowed="true" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="true" >
</band>
</summary>
</jasperReport>
...全文
140 4 打赏 收藏 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangpeixv 2009-04-08
  • 打赏
  • 举报
回复
你20行应该算是一页了吧
我觉得可能是你页面设置的时候detail或者是head栏上下有空白的地方
你可以手动的拉一下把空白的地方挤掉看看
susoft2008 2009-04-06
  • 打赏
  • 举报
回复
页面好像没什么问题吧 。。。
内容概要:本文研究了面向复杂海洋环境的无人水面艇(USV)编队控制问题,提出了一种双层模型预测控制(MPC)理论与鲁棒协同控制方法。上层负责编队构型的优化与全局路径规划,通过求解优化问题实现多艇协同构型的动态调整;下层基于非线性MPC框架实现各无人艇的运动控制与精确轨迹跟踪,充分考虑了系统动力学约束、外部环境干扰(如风浪流)及模型不确定性。通过引入鲁棒控制策略,增强了系统在复杂动态海洋环境下的抗干扰能力与控制稳定性。研究在Matlab平台上完成了算法的完整代码实现与仿真验证,结果表明所提方法能够有效实现多艇在复杂环境下的高精度、强鲁棒性协同编队控制。; 适合人群:具备自动控制、机器人、海洋工程或相关专业背景,熟悉Matlab/Simulink仿真工具,从事多智能体协同控制、无人系统自主导航或模型预测控制算法研究的研发人员与研究生。; 使用场景及目标:①为无人水面艇在复杂、动态、不确定的海洋环境下执行编队任务提供先进的控制理论与技术方案;②通过完整的Matlab代码实现,方便研究人员复现、验证、改进双层MPC与鲁棒协同控制算法;③促进模型预测控制与鲁棒控制理论在多智能体系统、无人装备协同作业等领域的深度融合与应用发展。; 阅读建议:建议读者结合提供的Matlab代码,深入剖析双层控制架构的设计逻辑、MPC优化问题的构建过程以及鲁棒性处理机制的具体实现,重点关注算法如何处理模型误差、外部干扰和系统硬约束,以全面掌握其在复杂场景下的工程应用潜力。

81,108

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧