我有一個文檔,我已經在其中設置了一個標題。主體在標題後面開始,並繼續到我的標題在那裏的下一頁。在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 –