Jasper reports Jasperr在第一行后报告缩进

Jasper reports Jasperr在第一行后报告缩进,jasper-reports,Jasper Reports,我正在用jasper 6.6.0制作PDF和docx格式的报告。 我面临的问题是,我不能在第一行之后有段落缩进。输入文本是从XML文件中以新行分隔的段落: <Literatur>Bjelland, EK; Wilkosz, P; Tanbo, TG; Eskild, A (2014). Is unilateral oophorectomy associated with age at menopause? A population study (the HUNT2 Survey).

我正在用jasper 6.6.0制作PDF和docx格式的报告。 我面临的问题是,我不能在第一行之后有段落缩进。输入文本是从XML文件中以新行分隔的段落:

<Literatur>Bjelland, EK; Wilkosz, P; Tanbo, TG; Eskild, A (2014). Is unilateral oophorectomy associated with age at menopause? A population study (the HUNT2 Survey). Human Reproduction 29(4): 835-41. DOI: 10.1093/humrep/deu026

Leitlinienprogramm Onkologie (AWMF, Deutsche Krebsgesellschaft, Deutsche Krebshilfe) (2012): S3-Leitlinie Diagnostik, Therapie und Nachsorge des Mammakarzinoms, Langversion 3.0, 2012, AWMF-Registernummer: 032/045OL, http://leitlinienprogramm-onkologie.de/Mammakarzinom.67.0.html (Recherchedatum: 15.10.2015). Stand: Juli 2012, gültig bis 30.06.2017.
    </Literatur>
Bjelland,EK;威尔科兹,P;Tanbo,TG;Eskild,A(2014年)。单侧卵巢切除术与绝经年龄相关吗?人口研究(HUNT2调查)。人类生殖29(4):835-41。内政部:10.1093/humrep/deu026
关于科洛吉的莱特林计划(AWMF,德国克里布塞尔沙夫特,德国克里布希夫)(2012年):S3莱特林诊断、治疗和乳腺癌组织,语言版本3.012,AWMF注册摘要:032/045OL,http://leitlinienprogramm-onkologie.de/Mammakarzinom.67.0.html (Recherchedatum:15.10.2015)。立场:Juli 2012,gültig bis 2017年6月30日。
我在
  • 和以下样式之间添加并放置每一行:

        <style name="indent" style="Standard">
        <box leftPadding="5"/>
        <paragraph firstLineIndent="-5"/>
        </style>
    
    
    
    在文本字段中使用:

        <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement style="indent" positionType="Float" x="0" y="159" width="465" height="28" uuid="f7184f30-82ee-44b4-8dcb-9d3d70ac3bc8"/>
                <textFieldExpression><![CDATA[$F{Literatur}]]></textFieldExpression>
            </textField>
    
    
    
    正如已张贴在但这疯狂的文人部分消失,并没有显示在所有

    如何像java导出一样生成PDF和docx格式的导出

    DOCX看起来像:

    PDF看起来像:

    正确的Java导出:

    负缩进有问题,您可以创建这样的数据源吗?请参见我看到的最后一节。我正在尝试你的链接,但是jasper无法解析这个字段?我不知道为什么,我需要查看代码,它在哪里无法解析?。无论如何,您的解决方案是停止使用负缩进