【发布时间】:2013-02-14 23:48:18
【问题描述】:
我想在自定义 rml 报告中制作特定的页眉和页脚(与其他报告不同),因此我无法将页眉/页脚部分更改为该公司 如何为该报告创建一个将出现在所有报告页面中的新页脚
我已在<blockTable> 中将页眉作为重复行,但我没有找到页脚的任何解决方案
我的 rml 报告示例
<?xml version="1.0" encoding="UTF-8"?>
<document filename="test.pdf">
<template pageSize="(842.0,595.0)" title="Test" author="Martin Simon" allowSplitting="20">
<pageTemplate id="main">
<pageGraphics>
<image file="addons/sim/report/org.jpg" x="0" y="0" width="842" height="595"/>
</pageGraphics>
<frame id="first" x1="72.0" y1="122.0" width="707" height="404"/>
</pageTemplate>
</template>
<story>
<blockTable repeatRows="1">
<tr>
<td>
Test Header
</td>
</tr>
<tr>[[ repeatIn(objects,'o') ]]
<td>
<para style="Table_20_Contents">
</para>
</td>
</tr>
</blockTable>
<para name="footer">
Test footer
</para>
</story>
</document>
【问题讨论】: