This question has been flagged

When I print Trial Balance report or financial reports, The page number always start with Page 2.

Example:

If the report has 2 page : First page displays 2/2, second page displays 1/2.

If the report has 3 page : First page displays 2/3, second page displays 3/3, third page displays 1/3.

I notice the report use RML Internal Header, but when I checked the header code, there is no line to display page number. How should I solve this problem?

RML Internal Header

<header>
<pageTemplate>
<frame id="first" x1="28.0" y1="28.0" width="539" height="772"/>
<stylesheet>
<!-- Set here the default font to use for all <para> tags -->
<paraStyle name='Normal' fontName="DejaVu Sans"/>
</stylesheet>
<pageGraphics>
<fill color="black"/>
<stroke color="black"/>
<setFont name="DejaVu Sans" size="8"/>
<drawString x="1.0cm" y="28.3cm"> [[ formatLang(time.strftime("%Y-%m-%d"), date=True) ]] [[ time.strftime("%H:%M") ]]</drawString>
<setFont name="DejaVu Sans Bold" size="10"/>
<drawCentredString x="11.1cm" y="28.3cm">[[ company.partner_id.name ]]</drawCentredString>
<stroke color="#000000"/>
<lines>1.0cm 28.1cm 20.1cm 28.1cm</lines>
<!-- Set here the default font to use for all <drawString> tags -->
<!-- don't forget to change the 2 other occurence of <setFont> above if needed -->
<setFont name="DejaVu Sans" size="8"/>
</pageGraphics>
</pageTemplate>
</header>

 

 

Avatar
Discard