<pageCount/> not rendering in OpenERP 7

守給你的承諾、 提交于 2019-12-05 02:05:02

Hello everybody and thank you all for your answers.

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.

Regards

It is a bug that not fixed yet. Take a look here pageCount Bug. Maybe problem can be solved by a small patch attached there.

If you write, in your footer: The total number of page will be written at the exact place chosen (here x="10.5cm" y="0.8cm", x and y start from the left-down corner). Beware that if you type: Total Pages: then the tag will overlap with the label 'Total Pages:' (this is because the is filled as a final step). So make sure to have this tag alone in the tag at the coordinates you'll have chosen.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!