我有一个文档,我已经在其中设置了一个标题。主体在标题后面开始,并继续到我的标题在那里的下一页。在RML文档中添加页脚
这就是说,我无法正确添加页脚。从检查RML参考看来,似乎没有标签,我可以添加它作为页脚,所以我必须想出一个解决方案。到目前为止我没有尝试过的作品。这是我的模板部分:
<template pageSize="(595.0,842.0)" title="Test" author="geof" allowSplitting="20">
<pageTemplate id="first">
<frame id="first" x1="24.0" y1="-80.0" width="530" height="796"/>
<header>
<pageGraphics>
<image x="5.3cm" y="8.9cm" height="280.0">[[ get_background() ]]</image>
<image x="6.3cm" y="25.7cm" height="80.0" >[[ company.logo or removeParentNode('image') ]]</image>
<!-- <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
<drawRightString x="20cm" y="28.1cm"> Reference Guide </drawRightString>
<lines>1cm 28cm 20cm 28cm</lines> -->
<drawString x="7.0cm" y="1.1cm" height="50.0">[[ get_footer() ]]</drawString>
</pageGraphics>
</header>
</pageTemplate>
</template>
可能对您有所帮助。 http://odedrabhavesh.blogspot.in/2014/12/how-to-display-custom-header-footer-in-all-pages-rml-report.html –