Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html RML-将第二页添加为空白页_Html_Report_Rml - Fatal编程技术网

Html RML-将第二页添加为空白页

Html RML-将第二页添加为空白页,html,report,rml,Html,Report,Rml,我在rml模板上定义了如下特定图形: <pageTemplate id="first"> <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/> <pageGraphics> ... graphics defined here ... </pageGraphics> 然后我得到两页,但第二页和第一页有相同的图形。但我需要第二页只是一个空白页

我在rml模板上定义了如下特定图形:

<pageTemplate id="first">
    <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
    <pageGraphics> 
    ... graphics defined here ...
    </pageGraphics>
然后我得到两页,但第二页和第一页有相同的图形。但我需要第二页只是一个空白页,没有任何图形。我怎么能这样做

简言之,我需要模板是两页-第一与图形定义,第二个简单的空白页。
问题是,如果我访问更多页面,它只会复制所有内容(我想这是标准行为)。

首先在模板标记中定义所需的页面模板数

<template pageSize="(595.0,842.0)" title="Test" allowSplitting="20">
<pageTemplate id="first">
    <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
    <pageGraphics> 
    ... graphics defined here ...
    </pageGraphics>
</pageTemplate>
<pageTemplate id="second">
<frame id="second" x1="15.0" y1="42.0" width="539" height="758"/>
<pageGraphics> 
    ... graphics defined here ...
    </pageGraphics>
</pageTemplate>
</template>

... 这里定义的图形。。。
... 这里定义的图形。。。
然后在故事中添加标签

<setNextTemplate name="second" />

现在所有的页面都将遵循第二个页面模板

<setNextTemplate name="second" />