Java集成ireport导出内含图片集合的word

使用模板技术也可以解决这种问题,但在这里之阐述使用ireport导出内含图片集合的word

1.java代码:

图片集合存放的是图片的地址

@Test
public void generateReportByMap1(){
    try {
        // 通过URL获取模板
        JasperDesign design= JRXmlLoader.load(this.getClass().getClassLoader().getResource("jasperreport/problem1.jrxml").getPath());
        JasperReport jasperReport = JasperCompileManager.compileReport(design);
        // 创建空的数据源
        HashMap mapParam = new HashMap();
        ArrayList<Object> list = new ArrayList<>();
        list.add("C:\\Users\\my\\Desktop\\hhhhhhhhhhhhhh\\beiyong\\1569294754(1).png");
        list.add("C:\\Users\\my\\Desktop\\hhhhhhhhhhhhhh\\beiyong\\1569378528(1).png");
        //系统名称
        mapParam.put("sysName","直通式处理系统");
        //问题类型
        mapParam.put("problemType","模拟问题");
        //版本号
        mapParam.put("itemVersion","V1.0.0.1");
        //测试公司
        mapParam.put("testCompany","圣诞节");
        //Itil号
        mapParam.put("ITILNum","ITIL1234567890");
        //CQID号
        mapParam.put("CQIDNum","CQID1234567890");
        //审核人
        mapParam.put("devAuditor","张三");
        //填写时间
        mapParam.put("devFillTime","2019-09-25 11:23:00");
        //问题发生时间
        mapParam.put("devProblemTime","2019-09-25 11:23:00");
        //填写人
        mapParam.put("devFillName","李四");
        //开发负责人
        mapParam.put("devLeader","王二");
        //业务现象
        mapParam.put("devAppearance","收到法兰克福萨里发撒的发生发大水发");
        //问题分析
        mapParam.put("devProblemAnalysis","问题分析");
        //根本原因分析
        mapParam.put("DevRca","根本问题分析");
        //应急处理过程
        mapParam.put("emergencyManage","应急处理过程");
        //缺陷预防措施
        mapParam.put("devPrevent","缺陷预防措施");
        //图片集合
        mapParam.put("devPictures",list);
        //测试填写时间
        mapParam.put("testFillTime","2019-09-25 11:23:00");
        //测试问题发生时间
        mapParam.put("testProblemTime","2019-09-25 11:23:00");
        //填写人
        mapParam.put("testFillName","李四");
        //测试分析人员
        mapParam.put("testApprovalName","张胜男");
        //测试负责人
        mapParam.put("testLeader","王二");
        //测试分析完成时间
        mapParam.put("testCompleteTime","2019-09-25 11:23:00");
        //是否在测试范围内
        mapParam.put("testRange","是");
        //测试范围是否评审
        mapParam.put("testRangeReview","是");
        //测试用例
        mapParam.put("testCase","是");
        //测试用例是否评审
        mapParam.put("testCaseReview","是");
        //问题说明
        mapParam.put("testProblem","问题说明");
        //预防措施
        mapParam.put("testPrevent","预防措施");
        ArrayList<Object> list1 = new ArrayList<>();
        list1.add("C:\\Users\\my\\Desktop\\hhhhhhhhhhhhhh\\beiyong\\1569294754(1).png");
        list1.add("C:\\Users\\my\\Desktop\\hhhhhhhhhhhhhh\\beiyong\\1569378528(1).png");
        //测试图片
        mapParam.put("testPictures",list1);

        JRDataSource dataSource = new JREmptyDataSource();
        // 通过模板、Map参数、数据源 创建Jasper对象,使用这个对象可以创建导出各种格式文件的实例对象
        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,mapParam, dataSource);
        String reportName = "C:\\Users\\my\\Desktop\\hhhhhhhhhhhhhh\\beiyong\\problem1.docx";
        JRRtfExporter docReport = new JRRtfExporter();
        SimpleDocxExporterConfiguration configuration = new SimpleDocxExporterConfiguration();
        docReport.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,reportName);
        docReport.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        docReport.exportReport();
    } catch (JRException e) {
        e.printStackTrace();
    }
}

使用JRRtfExporter docReport = new JRRtfExporter();不含控件的虚线

使用 new JRDocxExporter() 会有虚线这是两者区别

导出的文档有个缺陷表面没有虚线,修改时是有虚线的影响修改

2.模板设计

2.1

2.2拖曳image组件至table控件的detail中,取消选择图片

2.3更改image的表达式 image expression

$P{devPictures}.get( $V{REPORT_COUNT}-01 )

Expression Class 选择 java.lang.String

2.4编辑table组件的数据源

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{devPictures})

模板:名称problem1.jrxml

<?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="problem1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ba03b124-59cd-4c19-b69c-6d285c2300ed">
	<property name="ireport.zoom" value="1.1000000000000023"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="760"/>
	<subDataset name="Table Dataset 1" uuid="19f1df56-205e-4305-9a0f-ac5e00a8116b">
		<parameter name="devPictures" class="java.util.List"/>
	</subDataset>
	<subDataset name="Table Dataset 2" uuid="d2ccf450-a700-4f3a-a789-3487d1ad87f6">
		<parameter name="testPictures" class="java.util.List"/>
	</subDataset>
	<parameter name="sysName" class="java.lang.String" isForPrompting="false"/>
	<parameter name="problemType" class="java.lang.String"/>
	<parameter name="itemVersion" class="java.lang.String"/>
	<parameter name="testCompany" class="java.lang.String"/>
	<parameter name="ITILNum" class="java.lang.String"/>
	<parameter name="CQIDNum" class="java.lang.String"/>
	<parameter name="devAuditor" class="java.lang.String"/>
	<parameter name="devFillTime" class="java.lang.String"/>
	<parameter name="devProblemTime" class="java.lang.String"/>
	<parameter name="devFillName" class="java.lang.String"/>
	<parameter name="devLeader" class="java.lang.String"/>
	<parameter name="devAppearance" class="java.lang.String"/>
	<parameter name="devProblemAnalysis" class="java.lang.String"/>
	<parameter name="DevRca" class="java.lang.String"/>
	<parameter name="emergencyManage" class="java.lang.String" isForPrompting="false"/>
	<parameter name="devPrevent" class="java.lang.String"/>
	<parameter name="devPictures" class="java.util.List"/>
	<parameter name="testFillTime" class="java.lang.String"/>
	<parameter name="testProblemTime" class="java.lang.String"/>
	<parameter name="testFillName" class="java.lang.String"/>
	<parameter name="testApprovalName" class="java.lang.String"/>
	<parameter name="testLeader" class="java.lang.String"/>
	<parameter name="testCompleteTime" class="java.lang.String"/>
	<parameter name="testRange" class="java.lang.String"/>
	<parameter name="testRangeReview" class="java.lang.String"/>
	<parameter name="testCase" class="java.lang.String"/>
	<parameter name="testCaseReview" class="java.lang.String"/>
	<parameter name="testProblem" class="java.lang.String"/>
	<parameter name="testPrevent" class="java.lang.String"/>
	<parameter name="testPictures" class="java.util.List"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="80" splitType="Stretch">
			<staticText>
				<reportElement x="202" y="52" width="100" height="27" uuid="49bd8e95-d7c5-439d-8b49-d5f19b013ff1"/>
				<textElement textAlignment="Center">
					<font size="16"/>
				</textElement>
				<text><![CDATA[分析报告]]></text>
			</staticText>
			<textField>
				<reportElement x="13" y="21" width="308" height="31" uuid="45374532-d5c2-437c-951b-9bb04cb23b77"/>
				<textElement textAlignment="Right">
					<font size="16"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{sysName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="321" y="21" width="100" height="31" uuid="80a83607-1f1e-4256-b4db-c1c756a24bd5"/>
				<textElement>
					<font size="16"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{problemType}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<detail>
		<band height="73" splitType="Stretch">
			<staticText>
				<reportElement x="24" y="27" width="46" height="15" uuid="dd69067e-6a5f-4057-a244-6c7f9e909287"/>
				<text><![CDATA[测试公司:]]></text>
			</staticText>
			<line>
				<reportElement x="461" y="71" width="81" height="1" uuid="959db816-1c44-4f7b-ac93-42bdd460f54b"/>
			</line>
			<line>
				<reportElement x="464" y="15" width="81" height="1" uuid="7fd4446d-e88b-4ac3-bfaf-c88ee7b839d6"/>
			</line>
			<staticText>
				<reportElement x="25" y="57" width="46" height="15" uuid="5a947a17-4fb3-445c-a0c9-cdcc75e0f529"/>
				<text><![CDATA[CQID号:]]></text>
			</staticText>
			<staticText>
				<reportElement x="25" y="0" width="46" height="15" uuid="eca85a1a-157b-4256-875e-55acba4325f0"/>
				<text><![CDATA[系统名称:]]></text>
			</staticText>
			<line>
				<reportElement x="86" y="44" width="81" height="1" uuid="0ccef28f-98f8-448b-97a8-a2fba13b3ea1"/>
			</line>
			<staticText>
				<reportElement x="395" y="30" width="46" height="15" uuid="1f544e1d-296a-4301-bb1c-7dca87c805c4"/>
				<text><![CDATA[ITIL号:]]></text>
			</staticText>
			<line>
				<reportElement x="463" y="40" width="81" height="1" uuid="9279fd0d-0d37-47fb-91bf-a656c4790831"/>
			</line>
			<staticText>
				<reportElement x="395" y="57" width="46" height="15" uuid="0da6cf0e-50f0-4258-b56e-5f0153ecea8b"/>
				<text><![CDATA[审核人:]]></text>
			</staticText>
			<line>
				<reportElement x="86" y="72" width="81" height="1" uuid="262eecaf-92de-40ba-990d-e2eae1b1efb1"/>
			</line>
			<staticText>
				<reportElement x="396" y="0" width="46" height="15" uuid="48db9fca-7bcf-4bd2-8b90-f93c60a89bc4"/>
				<text><![CDATA[版本号:]]></text>
			</staticText>
			<line>
				<reportElement x="90" y="14" width="285" height="1" uuid="84f71aff-f6ab-4de3-8dc3-63b8d291f663"/>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="90" y="0" width="285" height="14" uuid="f2316894-64cd-4b9f-b742-83db97357420"/>
				<textFieldExpression><![CDATA[$P{sysName}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="464" y="0" width="100" height="16" uuid="9a348ee1-351e-4f02-967c-6fdab6542682"/>
				<textFieldExpression><![CDATA[$P{itemVersion}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="86" y="28" width="84" height="16" uuid="3c34f18f-6ba2-4242-920e-854cd2dd8caa"/>
				<textFieldExpression><![CDATA[$P{testCompany}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="462" y="27" width="100" height="15" uuid="f06986d4-59ee-4c13-b0e9-56de9b97d0e7"/>
				<textFieldExpression><![CDATA[$P{ITILNum}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="86" y="58" width="100" height="15" uuid="bd48b44c-813c-4153-b7ec-9ec4a07d64a1"/>
				<textFieldExpression><![CDATA[$P{CQIDNum}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="461" y="56" width="84" height="15" uuid="4a020cfd-936d-45d1-9de8-0769177d6fbf"/>
				<textFieldExpression><![CDATA[$P{devAuditor}]]></textFieldExpression>
			</textField>
		</band>
		<band height="74">
			<staticText>
				<reportElement x="25" y="58" width="65" height="15" uuid="e479ac06-c8ca-417a-91e5-e227b4eb3749"/>
				<text><![CDATA[开发负责人:]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="8" y="0" width="539" height="15" backcolor="#EDF3FC" uuid="5b597c0c-f7e8-4cb6-a2b6-1109a8f63ee6"/>
				<text><![CDATA[     开发环节分析:]]></text>
			</staticText>
			<staticText>
				<reportElement x="396" y="55" width="46" height="15" uuid="0679ab26-3fb9-464d-9e3c-ee366eeea1aa"/>
				<text><![CDATA[填写人:]]></text>
			</staticText>
			<line>
				<reportElement x="469" y="30" width="81" height="1" uuid="926e61b0-cdee-45ad-9154-45aa6ea52854"/>
			</line>
			<staticText>
				<reportElement x="395" y="16" width="68" height="15" uuid="53ab8ff3-017d-42f7-8b45-d74b2033c6b2"/>
				<text><![CDATA[问题发生时间:]]></text>
			</staticText>
			<line>
				<reportElement x="462" y="69" width="79" height="1" uuid="469bff37-93e4-4f92-84c5-04236ee853f6"/>
			</line>
			<staticText>
				<reportElement x="25" y="15" width="65" height="15" uuid="a72645c6-34ed-4f69-a66b-67e4b185db95"/>
				<text><![CDATA[填写时间:]]></text>
			</staticText>
			<line>
				<reportElement x="90" y="70" width="81" height="1" uuid="a1220242-2c77-45d7-93aa-5df844bc95c9"/>
			</line>
			<line>
				<reportElement x="90" y="30" width="81" height="1" uuid="2a367ea4-4208-4161-97f1-2cf4930e3dea"/>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="89" y="15" width="100" height="15" uuid="59032974-a98f-41d1-ad56-1bdd3550ff17"/>
				<textFieldExpression><![CDATA[$P{devFillTime}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="469" y="15" width="100" height="15" uuid="302e54be-7613-4943-9440-0508e60e9901"/>
				<textFieldExpression><![CDATA[$P{devProblemTime}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="462" y="55" width="84" height="14" uuid="3a4a1789-bb6f-40d0-b76d-2101e562e489"/>
				<textFieldExpression><![CDATA[$P{devFillName}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="89" y="59" width="100" height="15" uuid="077e1fd7-5665-4bee-adb9-f1c60c75924d"/>
				<textFieldExpression><![CDATA[$P{devLeader}]]></textFieldExpression>
			</textField>
		</band>
		<band height="117">
			<staticText>
				<reportElement mode="Opaque" x="8" y="0" width="536" height="15" backcolor="#EDF3FC" uuid="2be7544a-bb7a-4d0c-97e2-00fd43b9776d"/>
				<text><![CDATA[      业务现象]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="21" y="15" width="521" height="15" uuid="8dd3802e-def1-4b61-9bd4-a1f1f131a2a5"/>
				<textFieldExpression><![CDATA[$P{devAppearance}]]></textFieldExpression>
			</textField>
		</band>
		<band height="104">
			<staticText>
				<reportElement mode="Opaque" x="5" y="0" width="539" height="15" backcolor="#EDF3FC" uuid="53a30758-19e1-45c3-898b-8b6273393fb2"/>
				<text><![CDATA[       问题分析]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="26" y="15" width="520" height="15" uuid="2a074947-8d9f-44b8-936f-89983c9a82e7"/>
				<textFieldExpression><![CDATA[$P{devProblemAnalysis}]]></textFieldExpression>
			</textField>
		</band>
		<band height="89">
			<staticText>
				<reportElement mode="Opaque" x="5" y="0" width="539" height="15" backcolor="#EDF3FC" uuid="5616518e-2ca4-4f88-b430-459b6d7c1a7b"/>
				<text><![CDATA[       根本原因分析]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="25" y="15" width="519" height="15" uuid="7a254889-5980-43c4-9afb-eb35781dbf3a"/>
				<textFieldExpression><![CDATA[$P{DevRca}]]></textFieldExpression>
			</textField>
		</band>
		<band height="99">
			<staticText>
				<reportElement mode="Opaque" x="5" y="0" width="539" height="15" backcolor="#EDF3FC" uuid="e21576b8-a717-4b8b-a4b7-2ec33d9ead41"/>
				<text><![CDATA[       应急处理过程]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="25" y="15" width="519" height="74" uuid="472d8a7a-ddd2-4512-aff6-b259dd670b5d"/>
				<textFieldExpression><![CDATA[$P{emergencyManage}]]></textFieldExpression>
			</textField>
		</band>
		<band height="73">
			<staticText>
				<reportElement mode="Opaque" x="3" y="0" width="541" height="15" backcolor="#EDF3FC" uuid="0fafb1ed-40e4-4c6d-ae7b-76eeec6daba2"/>
				<text><![CDATA[       缺陷预防措施(开发角度)]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="24" y="15" width="521" height="40" uuid="8d3fad6c-1225-4297-87ee-0ae17751ff53"/>
				<textFieldExpression><![CDATA[$P{devPrevent}]]></textFieldExpression>
			</textField>
		</band>
		<band height="88">
			<staticText>
				<reportElement mode="Opaque" x="6" y="0" width="538" height="15" backcolor="#EDF3FC" uuid="939a8152-fcd7-44db-b389-d9d3740d205f"/>
				<text><![CDATA[       图片附件]]></text>
			</staticText>
			<componentElement>
				<reportElement x="8" y="17" width="434" height="71" uuid="b9b2f859-a9e2-4362-b817-7d1e06c1fb5f"/>
				<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">
					<datasetRun subDataset="Table Dataset 1" uuid="c5f246ec-3e92-4a97-8bc4-ba3c9537214d">
						<datasetParameter name="devPictures">
							<datasetParameterExpression><![CDATA[$P{devPictures}]]></datasetParameterExpression>
						</datasetParameter>
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{devPictures})]]></dataSourceExpression>
					</datasetRun>
					<jr:column width="245" uuid="b00555db-505c-4cc4-8b44-0053de572434">
						<jr:tableHeader height="30" rowSpan="1"/>
						<jr:columnHeader height="30" rowSpan="1"/>
						<jr:detailCell height="108" rowSpan="1">
							<image>
								<reportElement x="0" y="0" width="245" height="108" uuid="a2b63120-abce-452b-a240-c3eb128bb1d7"/>
								<imageExpression><![CDATA[$P{devPictures}.get( $V{REPORT_COUNT}-01 )]]></imageExpression>
							</image>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
		<band height="87">
			<line>
				<reportElement x="299" y="55" width="100" height="1" uuid="eda7e8f0-ba33-4a40-8a61-115ee2f6ca57"/>
			</line>
			<line>
				<reportElement x="484" y="56" width="60" height="1" uuid="4fc6aa88-23ce-4f51-b5be-230ea2e91b74"/>
			</line>
			<line>
				<reportElement x="107" y="40" width="100" height="1" uuid="2462a2cc-7dba-455e-a2f8-55786705c17e"/>
			</line>
			<line>
				<reportElement x="296" y="39" width="100" height="1" uuid="8eed7f50-18e6-4cad-b09b-c560a754304b"/>
			</line>
			<staticText>
				<reportElement x="217" y="70" width="92" height="15" uuid="be98e7fa-a087-4b12-a4d5-660cbf51ae5b"/>
				<text><![CDATA[测试用例是否评审:]]></text>
			</staticText>
			<line>
				<reportElement x="107" y="55" width="100" height="1" uuid="5146cf2b-0669-4ba9-a5f1-be68292513e0"/>
			</line>
			<line>
				<reportElement x="300" y="83" width="245" height="1" uuid="ed7547ec-da33-4246-b1bc-32a0525d8e6b"/>
			</line>
			<staticText>
				<reportElement x="24" y="40" width="65" height="15" uuid="134c8f92-d668-4214-8cce-7d083cf9869a"/>
				<text><![CDATA[测试分析人员:]]></text>
			</staticText>
			<staticText>
				<reportElement x="396" y="40" width="100" height="15" uuid="d025641b-a0a2-49d6-93c7-03c9079c200e"/>
				<text><![CDATA[测试分析完成时间:]]></text>
			</staticText>
			<line>
				<reportElement x="299" y="70" width="245" height="1" uuid="d8706314-fa49-4b1a-bbe9-876bf48bad8c"/>
			</line>
			<staticText>
				<reportElement x="217" y="55" width="92" height="15" uuid="4f40b115-ce50-42b5-a0bc-598ac053f5f3"/>
				<text><![CDATA[测试范围是否评审:]]></text>
			</staticText>
			<staticText>
				<reportElement x="24" y="55" width="100" height="15" uuid="e5e716ed-2ee2-4b99-9dc7-9e90efb758b4"/>
				<text><![CDATA[是否在测试范围内:]]></text>
			</staticText>
			<staticText>
				<reportElement x="24" y="70" width="100" height="15" uuid="c1cc08d8-c30a-4d9e-a995-caa616996218"/>
				<text><![CDATA[是否有对应用例:]]></text>
			</staticText>
			<staticText>
				<reportElement x="217" y="40" width="82" height="15" uuid="dbadf421-bdc0-4cc4-b32f-ff312f63beaa"/>
				<text><![CDATA[测试负责人:]]></text>
			</staticText>
			<line>
				<reportElement x="107" y="84" width="100" height="1" uuid="46f977ce-6ef0-476b-810b-b9022b1065cd"/>
			</line>
			<staticText>
				<reportElement x="217" y="25" width="82" height="15" uuid="c267aae1-0698-4d45-8978-89133efd7ea4"/>
				<text><![CDATA[问题发生时间:]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="6" y="0" width="538" height="15" backcolor="#EDF3FC" uuid="82964290-33f9-4d46-a7e4-e4afa7c0a7b4"/>
				<text><![CDATA[      测试环节分析]]></text>
			</staticText>
			<line>
				<reportElement x="107" y="69" width="100" height="1" uuid="c381435c-412d-45d7-87ff-23ca3cf2beda"/>
			</line>
			<staticText>
				<reportElement x="24" y="25" width="65" height="15" uuid="c2683c33-9c3c-4ecb-b82d-bdc36d5f3641"/>
				<text><![CDATA[填写时间:]]></text>
			</staticText>
			<staticText>
				<reportElement x="396" y="25" width="46" height="15" uuid="7121e5c9-59d0-4457-a1d2-9a94c4c7f4ca"/>
				<text><![CDATA[填写人:]]></text>
			</staticText>
			<line>
				<reportElement x="444" y="38" width="100" height="1" uuid="bee347b1-8ad0-4c16-b145-9257d08bf4bd"/>
			</line>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="102" y="25" width="100" height="15" uuid="c1106350-8644-4efd-bf0c-3c8f1019b39f"/>
				<textFieldExpression><![CDATA[$P{testFillTime}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="295" y="26" width="100" height="15" uuid="c1495c15-2f4b-4631-a887-2ca7979984c0"/>
				<textFieldExpression><![CDATA[$P{testProblemTime}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="441" y="23" width="100" height="15" uuid="dc4a54e2-e633-46e9-90db-aee307e93065"/>
				<textFieldExpression><![CDATA[$P{testFillName}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="102" y="41" width="100" height="15" uuid="f0add318-a3bb-4d5f-a150-390f7f694d73"/>
				<textFieldExpression><![CDATA[$P{testApprovalName}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="295" y="39" width="100" height="15" uuid="a2101458-b0ab-4c25-8c9d-5933cea4a1d9"/>
				<textFieldExpression><![CDATA[$P{testLeader}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="484" y="42" width="100" height="15" uuid="98fb2c4f-81e9-4af3-902e-e944a6782be1"/>
				<textFieldExpression><![CDATA[$P{testCompleteTime}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="107" y="54" width="100" height="15" uuid="1aba5ffb-d3f6-4d23-bd60-99d5561bc319"/>
				<textFieldExpression><![CDATA[$P{testRange}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="309" y="54" width="197" height="15" uuid="3dc8ea79-1302-4b25-8184-90b1179ca08f"/>
				<textFieldExpression><![CDATA[$P{testRangeReview}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="107" y="71" width="100" height="15" uuid="07c7c3a7-320d-4b74-b882-494613df7f61"/>
				<textFieldExpression><![CDATA[$P{testCase}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="309" y="72" width="100" height="15" uuid="74bbe468-13c1-4977-a143-0762d95205d5"/>
				<textFieldExpression><![CDATA[$P{testCaseReview}]]></textFieldExpression>
			</textField>
		</band>
		<band height="69">
			<staticText>
				<reportElement mode="Opaque" x="6" y="0" width="538" height="15" backcolor="#EDF3FC" uuid="b5d00a96-11ba-4ddf-a729-327f3d096a79"/>
				<text><![CDATA[      问题说明]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="26" y="15" width="515" height="20" uuid="783cd7e0-70c1-4a2e-aa37-c2baa7fba6b3"/>
				<textFieldExpression><![CDATA[$P{testProblem}]]></textFieldExpression>
			</textField>
		</band>
		<band height="88">
			<staticText>
				<reportElement mode="Opaque" x="6" y="0" width="538" height="15" backcolor="#EDF3FC" uuid="40374068-d0bc-49e8-86c7-ae68b597ce74"/>
				<text><![CDATA[      预防措施(测试角度)]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToBandHeight" x="26" y="15" width="515" height="20" uuid="21febcc7-b06a-4e8e-aa0c-52dc860c883f"/>
				<textFieldExpression><![CDATA[$P{testPrevent}]]></textFieldExpression>
			</textField>
		</band>
		<band height="72">
			<staticText>
				<reportElement mode="Opaque" x="7" y="0" width="538" height="15" backcolor="#EDF3FC" uuid="e0a16476-0aa2-4578-a799-61417c538356"/>
				<text><![CDATA[      图片附件]]></text>
			</staticText>
			<componentElement>
				<reportElement x="6" y="15" width="435" height="57" uuid="f9d97cf1-3e7d-4897-b70f-f02a63db3ac5"/>
				<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">
					<datasetRun subDataset="Table Dataset 2" uuid="2340dc0d-710d-421b-96b5-a3a3baaee375">
						<datasetParameter name="testPictures">
							<datasetParameterExpression><![CDATA[$P{testPictures}]]></datasetParameterExpression>
						</datasetParameter>
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{testPictures})]]></dataSourceExpression>
					</datasetRun>
					<jr:column width="278" uuid="58a99e46-a0c6-4393-833f-6d1c5cb3b5a2">
						<jr:tableHeader height="16" rowSpan="1"/>
						<jr:columnHeader height="19" rowSpan="1"/>
						<jr:detailCell height="118" rowSpan="1">
							<image isLazy="true">
								<reportElement x="0" y="0" width="278" height="118" uuid="e39e9be4-a04f-4322-a2e5-b2b88fa27206"/>
								<imageExpression><![CDATA[$P{testPictures}.get( $V{REPORT_COUNT}-01 )]]></imageExpression>
							</image>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
</jasperReport>

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值