Moin Moin, 我正在使用Openerp 7,並且使用rml創建了pdf。 問題是:我需要頁碼,但只是從第二頁開始。 我嘗試了一些rml if子句語句,但頁面1始終打印出來並且獲得printet的東西都非常奇怪。頁碼的RML測試
<header>
<pageTemplate id="second">
<frame id="second" x1="2.2cm" y1="2.5cm" width="16.9cm" height="22.3cm"/>
<pageGraphics>
<image file="images/isatech_water_header_medium.jpg" x="0.0cm" y="24.4cm" width="19.0cm" height="6.0cm"/>
<image file="images/isatech_water_footer.jpg" x="0.0cm" y="-0.5cm" width="16.9cm" height="2.6cm"/>
</pageGraphics>
</pageTemplate>
<pageTemplate id="first">
<frame id="first" x1="2.2cm" y1="2.5cm" width="16.9cm" height="22.3cm"/>
<pageGraphics>
<image file="images/isatech_water_header.jpg" x="0.0cm" y="24.4cm" width="19.0cm" height="6.0cm"/>
<image file="images/isatech_water_footer.jpg" x="0.0cm" y="-0.5cm" width="16.9cm" height="2.6cm"/>
[[ <pageNumber/> != '1' and <drawCentredString x="10cm" y="0.3cm"><pageNumber/></drawCentredString> ]]
</pageGraphics>
</pageTemplate>
</header>
什麼獲取打印上的PDF是:
] 1(2,3,...)
的pageTemplate第二爲第1頁後印刷不同的頭我希望能在頁碼之後找到那條路。
我真的不知道爲什麼代碼的行爲就像他一樣。也歡迎不同的解決方案。
製造商Chris