如果在rtf文件中没有要打印的订单项,则隐藏页面

enter image description here我正在使用BIP桌面附加词构建自定义打印,共有两页。第一页是一般信息,第二页来自订单项(应用程序使用了Unifier)。

订单项可能没有信息,如果没有数据输入订单项,我试图找到一种不打印的方式。[在此处输入图片描述] [2]

如果rtf文件中没有信息,如何隐藏或不打印页面?

谢谢

Zee

cc8562698 回答:如果在rtf文件中没有要打印的订单项,则隐藏页面

应该能够将if语句与包含条件的count函数一起使用。将if语句放在分页符之前。在此示例中,我正在检查INFORMATION元素是否为空,并计算其实例。

<?if:count(LIST_ROW/ROW[INFORMATION!=''])>0?>
...CONTENT...
<?end if?>

示例

模板 enter image description here

XML

<list_record>
<record>
<record_id>A</record_id>
<list_information>
<information>
<key>1</key>
<value>one</value>
</information>
<information>
<key>2</key>
<value>two</value>
</information>
</list_information>
</record>
<record>
<record_id>B</record_id>
<list_information>
<information>
<key>1</key>
<value></value>
</information>
<information>
<key>2</key>
<value></value>
</information>
</list_information>
</record>
</list_record>
本文链接:https://www.f2er.com/2632321.html

大家都在问