本文介绍了< pageCount/>在OpenERP 7中未渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OpenERP 7

I am working with OpenERP 7

我想修改发票报告页脚以显示当前页面和总页面数,如下所示:

I want to modify my invoice report footer to show the current page and the total number of pages like this :

page:2/2在第二页...

page:2/2 in the second page...

这是我的代码:

<place x="1.3cm" y="0cm" height="1.55cm" width="19.0cm">
                <para style="main_footer">[[ company.rml_footer ]]</para>
                <para style="main_footer">Page: <pageNumber/>/<pageCount/></para>
</place>

,但pageCount不返回任何数字.怎么了?

but pageCount don't return any number. What's wrong ?

推荐答案

大家好,谢谢大家的回答.

Hello everybody and thank you all for your answers.

实际上,经过深入的搜索之后,我发现将<pageCount />标记放入<place />标记时不会返回任何值,因此我将其放入<drawstring />标记中并返回总数页.这是我的代码:

In fact, after a deep and hard search I discovered that <pageCount /> tag will not return any value when we put it in a <place /> tag so I put it in a <drawstring /> tag and it returns the total number of pages. Here is my code:

 <place x="1.3cm" y="0cm" height="1.9cm" width="19.0cm">
           <para style="main_footer">
                 Page: <pageNumber/>/
           </para>
 </place>
 <drawString x="11.36cm" y="1.64cm" ><pageCount/></drawString> 

我知道这个解决方案不是专业的,但是确实有效,希望这个错误能尽快得到解决.

I know that this solution is not professional, but it did work, hope that this bug will be fixed soon.

致谢

这篇关于&lt; pageCount/&gt;在OpenERP 7中未渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 15:24